Skip to content

Commit

Permalink
Merge pull request #5 from wowba/feature_NoticePage
Browse files Browse the repository at this point in the history
Test: PR테스트용 커밋
  • Loading branch information
JiHongkyu authored Sep 12, 2023
2 parents 81026e1 + 1e5286b commit 53383cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
import React from 'react';
import { Routes, Route } from 'react-router-dom';
import './App.css';
import { Layout, Home, About, Dashboard, NoMatch } from "./pages/TestPage/Test"
import { Layout, Home, About, Dashboard, NoMatch } from './pages/TestPage/Test';
import Login from './pages/LoginPage/Login';
import Notice from './pages/NoticePage/Notice';

function App() {
return (
<Routes>
{/* *Route 기초* 추후 삭제 예정 */}
{/* Route는 아래처럼 중첩 라우팅이 가능합니다! */}
<Route path="/" element={<Layout />}>
<Route path='/' element={<Layout />}>
<Route index element={<Home />} />
<Route path="about" element={<About />} />
<Route path="dashboard" element={<Dashboard />} />
<Route path='about' element={<About />} />
<Route path='dashboard' element={<Dashboard />} />
{/* Using path="*"" means "match anything", so this route
acts like a catch-all for URLs that we don't have explicit
routes for. */}
<Route path="*" element={<NoMatch />} />
<Route path='*' element={<NoMatch />} />
</Route>
{/* *Route 기초* */}
<Route path='/login' element={<Login />} />
<Route path='notice' element={<Notice />} />
</Routes>
);
}
Expand Down
7 changes: 7 additions & 0 deletions src/pages/NoticePage/Notice.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

function Notice() {
return <div>Notice</div>;
}

export default Notice;

0 comments on commit 53383cb

Please sign in to comment.