Skip to content

Commit

Permalink
Fix prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ptvty committed Dec 19, 2024
1 parent 871811b commit 473a4b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/www/components/code-block-command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
5 changes: 4 additions & 1 deletion apps/www/hooks/use-config-package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { atomWithStorage } from "jotai/utils"

type ConfigPackageManager = "npm" | "yarn" | "pnpm" | "bun"

const configAtom = atomWithStorage<ConfigPackageManager>("config-package-manager", "pnpm")
const configAtom = atomWithStorage<ConfigPackageManager>(
"config-package-manager",
"pnpm"
)

export function useConfigPackageManager() {
return useAtom(configAtom)
Expand Down

0 comments on commit 473a4b5

Please sign in to comment.