From eb9568cd0b58779da89bd28eb606641d56113f0c Mon Sep 17 00:00:00 2001 From: SWARVY Date: Fri, 9 Aug 2024 16:08:16 +0900 Subject: [PATCH] chore(time): install & setup jotai package (#97) --- apps/time/package.json | 1 + apps/time/src/app/layout.tsx | 3 +- apps/time/src/shared/utils/Providers.tsx | 9 ++++++ pnpm-lock.yaml | 38 +++++++++++++++++++++--- 4 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 apps/time/src/shared/utils/Providers.tsx diff --git a/apps/time/package.json b/apps/time/package.json index c78669f8..16da39e3 100644 --- a/apps/time/package.json +++ b/apps/time/package.json @@ -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" diff --git a/apps/time/src/app/layout.tsx b/apps/time/src/app/layout.tsx index c29869bb..a0db8e33 100644 --- a/apps/time/src/app/layout.tsx +++ b/apps/time/src/app/layout.tsx @@ -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'; @@ -25,7 +26,7 @@ export default function RootLayout({ - {children} + {children} ); diff --git a/apps/time/src/shared/utils/Providers.tsx b/apps/time/src/shared/utils/Providers.tsx new file mode 100644 index 00000000..db715c0a --- /dev/null +++ b/apps/time/src/shared/utils/Providers.tsx @@ -0,0 +1,9 @@ +'use client'; + +import { PropsWithChildren } from 'react'; + +import { Provider } from 'jotai'; + +export default function Providers({ children }: PropsWithChildren) { + return {children}; +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fb65435d..61531a67 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -351,6 +351,9 @@ importers: '@clab/utils': specifier: workspace:* version: link:../../packages/utils + jotai: + specifier: ^2.9.2 + version: 2.9.2(@types/react@18.2.77)(react@18.2.0) next: specifier: 14.1.4 version: 14.1.4(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -4915,6 +4918,18 @@ packages: resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} hasBin: true + jotai@2.9.2: + resolution: {integrity: sha512-jIBXEadOHCziOuMY6HAy2KQcHipGhnsbF+twqh8Lcmcz/Yei0gdBtW5mOYdKmbQxGqkvfvXM3w/oHtJ2WNGSFg==} + engines: {node: '>=12.20.0'} + peerDependencies: + '@types/react': '>=17.0.0' + react: '>=17.0.0' + peerDependenciesMeta: + '@types/react': + optional: true + react: + optional: true + joycon@3.1.1: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} engines: {node: '>=10'} @@ -11409,7 +11424,7 @@ snapshots: eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.8.0(eslint@8.57.0) eslint-plugin-react: 7.34.1(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.57.0) @@ -11454,7 +11469,7 @@ snapshots: enhanced-resolve: 5.16.0 eslint: 8.57.0 eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.3 is-core-module: 2.13.1 @@ -11487,6 +11502,16 @@ snapshots: transitivePeerDependencies: - supports-color + eslint-module-utils@2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): + dependencies: + debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) + eslint: 8.57.0 + eslint-import-resolver-node: 0.3.9 + transitivePeerDependencies: + - supports-color + eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: array-includes: 3.1.8 @@ -11514,7 +11539,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 @@ -11524,7 +11549,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -12479,6 +12504,11 @@ snapshots: jiti@1.21.0: {} + jotai@2.9.2(@types/react@18.2.77)(react@18.2.0): + optionalDependencies: + '@types/react': 18.2.77 + react: 18.2.0 + joycon@3.1.1: {} js-tokens@4.0.0: {}