Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
multivoltage committed Jan 21, 2024
1 parent aaba160 commit eff962d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/docs/app/components/KeyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {

export const KeyForm: React.FC<Props> = ({ onChangeKey }) => {
const [value, setValue] = useState<string>(
process.env.NEXT_PUBLIC_ZENDESK_API_KEY || ""
process.env.NEXT_PUBLIC_ZENDESK_API_KEY || "",
);
const inputRef = useRef<HTMLInputElement>(null);
function handleChange(event: React.ChangeEvent<HTMLInputElement>) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev:docs": "dotenv -- turbo dev --filter=docs --filter=react-use-zendesk",
"lint": "turbo lint",
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
"format:fix": "prettier --chec \"**/*.{ts,tsx,md}\""
"format:fix": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-use-zendesk/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { createContext } from "react";
import { ZendeskContextValues } from "./types";

export const ZendeskContext = createContext<ZendeskContextValues | undefined>(
undefined
undefined,
);
8 changes: 4 additions & 4 deletions packages/react-use-zendesk/src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const ZendeskProvider: React.FC<
function (unreadMessages: number) {
setUnreadMessages(unreadMessages);
onUnreadMessages && onUnreadMessages(unreadMessages);
}
},
);
isRegisteredCb.current = true;
}
Expand Down Expand Up @@ -82,14 +82,14 @@ export const ZendeskProvider: React.FC<
(conversationFields: Array<ZendeskConversationField>) => {
ZendeskApi("messenger:set", "conversationFields", conversationFields);
},
[]
[],
);

const setConversationTags = React.useCallback(
(conversationTags: Array<string>) => {
ZendeskApi("messenger:set", "conversationTags", conversationTags);
},
[]
[],
);

const loginUser = React.useCallback((jwtToken: string) => {
Expand All @@ -98,7 +98,7 @@ export const ZendeskProvider: React.FC<
"loginUser",
(callback: (token: string) => void) => {
callback(jwtToken);
}
},
);
}, []);

Expand Down

0 comments on commit eff962d

Please sign in to comment.