-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContents.js
More file actions
33 lines (29 loc) · 950 Bytes
/
Contents.js
File metadata and controls
33 lines (29 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { BrowserRouter, Routes, Route, Link } from "react-router-dom";
import styled from "styled-components";
import Introduction from "./Tabs/Introduction";
import ErrorReport from "./Tabs/ErrorReport";
import SolutionReport from "./Tabs/SolutionReport";
export default function Contents() {
return (
<BrowserRouter>
<TabList>
<TabItem>
<Link to="/">소개</Link>
</TabItem>
<TabItem>
<Link to="/error-report">오류 제보</Link>
</TabItem>
<TabItem>
<Link to="/solution-report">정답 제보</Link>
</TabItem>
</TabList>
<Routes>
<Route path="/" element={<Introduction />}></Route>
<Route path="/error-report" element={<ErrorReport />}></Route>
<Route path="/solution-report" element={<SolutionReport />}></Route>
</Routes>
</BrowserRouter>
);
}
const TabList = styled.ul``;
const TabItem = styled.li``;