Skip to content

Commit

Permalink
fix: optimize app
Browse files Browse the repository at this point in the history
  • Loading branch information
jbj338033 committed Dec 10, 2024
1 parent 2a16853 commit 4a4c949
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"react-markdown": "^9.0.1",
"react-router-dom": "^7.0.2",
"react-syntax-highlighter": "^15.6.1",
"react-virtuoso": "^4.12.3",
"zustand": "^5.0.2"
},
"devDependencies": {
Expand Down
8 changes: 1 addition & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AlgorithmLayout from "./components/algorithm/AlgorithmLayout";
import AlgorithmList from "./components/algorithm/AlgorithmList";
import { AlgorithmDetail } from "./components/algorithm/AlgorithmDetail";
import { ThemeProvider } from "@emotion/react";
import { useThemeStore } from "./stores/themeStore";
import { useThemeStore } from "./stores/theme";
import { THEMES } from "./constants/theme";
import AILayout from "./components/ai/AILayout";
import AIList from "./components/ai/AIList";
Expand All @@ -27,24 +27,18 @@ function App() {
<ThemeProvider theme={THEMES[theme]}>
<BrowserRouter>
<Routes>
{/* 홈 레이아웃 및 메인 페이지 */}
<Route path="/" element={<RootLayout />}>
<Route index element={<Home />} />
</Route>

{/* 나르샤 섹션 */}
<Route path="/narsha" element={<NarshaLayout />}>
{/* 프로젝트 목록 */}
<Route index element={<NarshaList />} />

{/* 특정 프로젝트의 일지 목록 */}
<Route path=":projectId" element={<NarshaDiaryContainer />} />

{/* 특정 프로젝트의 특정 일지 상세 */}
<Route path=":projectId/:entryId" element={<NarshaDetail />} />
</Route>

{/* 데이터베이스 섹션 */}
<Route path="/database" element={<DatabaseLayout />}>
<Route path=":id" element={<DatabaseDetail />} />
</Route>
Expand Down

0 comments on commit 4a4c949

Please sign in to comment.