diff --git a/apps/www/components/code-block-command.tsx b/apps/www/components/code-block-command.tsx index eed56a464e7..3725490d954 100644 --- a/apps/www/components/code-block-command.tsx +++ b/apps/www/components/code-block-command.tsx @@ -16,7 +16,8 @@ export function CodeBlockCommand({ __pnpmCommand__, __bunCommand__, }: React.ComponentProps<"pre"> & NpmCommands) { - const [configPackageManager, setConfigPackageManager] = useConfigPackageManager() + const [configPackageManager, setConfigPackageManager] = + useConfigPackageManager() const [hasCopied, setHasCopied] = React.useState(false) React.useEffect(() => { diff --git a/apps/www/hooks/use-config-package-manager.ts b/apps/www/hooks/use-config-package-manager.ts index d45f1cc16bd..e84e76a9683 100644 --- a/apps/www/hooks/use-config-package-manager.ts +++ b/apps/www/hooks/use-config-package-manager.ts @@ -3,7 +3,10 @@ import { atomWithStorage } from "jotai/utils" type ConfigPackageManager = "npm" | "yarn" | "pnpm" | "bun" -const configAtom = atomWithStorage("config-package-manager", "pnpm") +const configAtom = atomWithStorage( + "config-package-manager", + "pnpm" +) export function useConfigPackageManager() { return useAtom(configAtom)