Skip to content

Commit

Permalink
chore(time): install & setup jotai package (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWARVY committed Aug 9, 2024
1 parent 88277f8 commit eb9568c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@clab/design-system": "workspace:*",
"@clab/icon": "workspace:^",
"@clab/utils": "workspace:*",
"jotai": "^2.9.2",
"next": "14.1.4",
"react": "^18",
"react-dom": "^18"
Expand Down
3 changes: 2 additions & 1 deletion apps/time/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { cn } from '@clab/utils';

import { Providers } from '@/shared/utils';
import type { Metadata } from 'next';
import { Noto_Sans_KR } from 'next/font/google';

Expand All @@ -25,7 +26,7 @@ export default function RootLayout({
<body
className={cn(inter.className, 'flex min-h-screen flex-col bg-gray-50')}
>
{children}
<Providers>{children}</Providers>
</body>
</html>
);
Expand Down
9 changes: 9 additions & 0 deletions apps/time/src/shared/utils/Providers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use client';

import { PropsWithChildren } from 'react';

import { Provider } from 'jotai';

export default function Providers({ children }: PropsWithChildren) {
return <Provider>{children}</Provider>;
}
38 changes: 34 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb9568c

Please sign in to comment.