Skip to content

Commit

Permalink
Merge pull request #11 from GDSC-Hongik/feature/jotai-setting
Browse files Browse the repository at this point in the history
[Feature] jotai 세팅
  • Loading branch information
ghdtjgus76 authored Aug 11, 2024
2 parents b3995e8 + 063f7d8 commit 137d906
Show file tree
Hide file tree
Showing 7 changed files with 8,728 additions and 6,918 deletions.
4 changes: 3 additions & 1 deletion apps/admin/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import "wowds-ui/styles.css";
import type { Metadata } from "next";
import localFont from "next/font/local";

import { JotaiProvider } from "../components/JotaiProvider";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
Expand All @@ -26,7 +28,7 @@ const RootLayout = ({
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
{children}
<JotaiProvider>{children}</JotaiProvider>
</body>
</html>
);
Expand Down
8 changes: 8 additions & 0 deletions apps/admin/components/JotaiProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";

import { Provider } from "jotai";
import type { ReactNode } from "react";

export const JotaiProvider = ({ children }: { children: ReactNode }) => {
return <Provider>{children}</Provider>;
};
15 changes: 8 additions & 7 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
},
"dependencies": {
"@wow-class/ui": "workspace:*",
"react": "latest",
"react-dom": "latest",
"next": "latest"
"jotai": "^2.9.2",
"next": "^14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"eslint": "^8",
"eslint-config-next": "latest"
"eslint-config-next": "^14.2.5",
"typescript": "^5"
}
}
4 changes: 3 additions & 1 deletion apps/client/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import "wowds-ui/styles.css";
import type { Metadata } from "next";
import localFont from "next/font/local";

import { JotaiProvider } from "../components/JotaiProvider";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
Expand All @@ -26,7 +28,7 @@ const RootLayout = ({
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
{children}
<JotaiProvider>{children}</JotaiProvider>
</body>
</html>
);
Expand Down
8 changes: 8 additions & 0 deletions apps/client/components/JotaiProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";

import { Provider } from "jotai";
import type { ReactNode } from "react";

export const JotaiProvider = ({ children }: { children: ReactNode }) => {
return <Provider>{children}</Provider>;
};
15 changes: 8 additions & 7 deletions apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
},
"dependencies": {
"@wow-class/ui": "workspace:*",
"react": "latest",
"react-dom": "latest",
"next": "latest"
"jotai": "^2.9.2",
"next": "^14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@wow-class/eslint-config": "workspace:*",
"@wow-class/typescript-config": "workspace:*",
"eslint": "^8",
"eslint-config-next": "latest"
"eslint-config-next": "^14.2.5",
"typescript": "^5"
}
}
Loading

0 comments on commit 137d906

Please sign in to comment.