From eff962db9bbce165b7beda7642ac51d7aa0f6cf9 Mon Sep 17 00:00:00 2001
From: diego tonini <diego.tonini93@gmail.com>
Date: Sun, 21 Jan 2024 18:12:51 +0100
Subject: [PATCH] chore: format code

---
 apps/docs/app/components/KeyForm.tsx        | 2 +-
 package.json                                | 2 +-
 packages/react-use-zendesk/src/context.ts   | 2 +-
 packages/react-use-zendesk/src/provider.tsx | 8 ++++----
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/apps/docs/app/components/KeyForm.tsx b/apps/docs/app/components/KeyForm.tsx
index c62bb58..c7b97d0 100644
--- a/apps/docs/app/components/KeyForm.tsx
+++ b/apps/docs/app/components/KeyForm.tsx
@@ -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>) {
diff --git a/package.json b/package.json
index 68e311b..7f9b3aa 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/packages/react-use-zendesk/src/context.ts b/packages/react-use-zendesk/src/context.ts
index 41c4d83..f64632b 100644
--- a/packages/react-use-zendesk/src/context.ts
+++ b/packages/react-use-zendesk/src/context.ts
@@ -4,5 +4,5 @@ import { createContext } from "react";
 import { ZendeskContextValues } from "./types";
 
 export const ZendeskContext = createContext<ZendeskContextValues | undefined>(
-  undefined
+  undefined,
 );
diff --git a/packages/react-use-zendesk/src/provider.tsx b/packages/react-use-zendesk/src/provider.tsx
index 3f2d8bd..e8c3715 100644
--- a/packages/react-use-zendesk/src/provider.tsx
+++ b/packages/react-use-zendesk/src/provider.tsx
@@ -41,7 +41,7 @@ export const ZendeskProvider: React.FC<
       function (unreadMessages: number) {
         setUnreadMessages(unreadMessages);
         onUnreadMessages && onUnreadMessages(unreadMessages);
-      }
+      },
     );
     isRegisteredCb.current = true;
   }
@@ -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) => {
@@ -98,7 +98,7 @@ export const ZendeskProvider: React.FC<
       "loginUser",
       (callback: (token: string) => void) => {
         callback(jwtToken);
-      }
+      },
     );
   }, []);