Skip to content

Commit

Permalink
refactor: gpt 모달을 전역상태로 관리합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero-1016 committed May 30, 2024
1 parent 0e5b358 commit ca118a1
Show file tree
Hide file tree
Showing 22 changed files with 4,060 additions and 3,121 deletions.
5 changes: 0 additions & 5 deletions app/(site)/@modal/(.)i/chat/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/(site)/i/chat/page.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions app/(site)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ReactNode } from 'react'
import { ToastContainer } from 'react-toastify'

import { ChatButton } from '@/features/chat/ui'
import { ChatModal } from '@/widgets/chat/ui'
import { Outlet } from '@/widgets/layout'

import styles from './layout.module.scss'
Expand All @@ -18,6 +19,7 @@ export default function Layout({ children, modal }: Props) {
<main className={styles.container}>
{modal}
<Outlet>
<ChatModal />
<ChatButton />
<ToastContainer autoClose={1000} />
{children}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"react-toastify": "^10.0.5",
"react-youtube": "^10.1.0",
"sass": "^1.75.0",
"zod": "^3.23.8"
"zod": "^3.23.8",
"zustand": "^4.5.2"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.1.4",
Expand Down
Loading

0 comments on commit ca118a1

Please sign in to comment.