Commit e21c5c14 authored by Kim, Subin's avatar Kim, Subin
Browse files

AdminPage status 추가

parent bbd589f3
...@@ -9,7 +9,7 @@ import StudyPlanListPage from "./pages/StudyPlanListPage"; ...@@ -9,7 +9,7 @@ import StudyPlanListPage from "./pages/StudyPlanListPage";
import StudyPlanPage from "./pages/StudyPlanPage"; import StudyPlanPage from "./pages/StudyPlanPage";
import StudyPlanEditPage from "./pages/StudyPlanEditPage"; import StudyPlanEditPage from "./pages/StudyPlanEditPage";
import SubjectEditPage from "./pages/SubjectEditPage"; import SubjectEditPage from "./pages/SubjectEditPage";
import AdminPage from "./pages/AdminPage"; import AdminPage from "./pages/Admin/AdminPage";
import PrivateRoute from "./components/PrivateRoute"; import PrivateRoute from "./components/PrivateRoute";
import ErrorPage from "./pages/ErrorPage"; import ErrorPage from "./pages/ErrorPage";
...@@ -29,7 +29,8 @@ function App() { ...@@ -29,7 +29,8 @@ function App() {
<Route path="/studyplan/:" component={StudyPlanPage} /> <Route path="/studyplan/:" component={StudyPlanPage} />
<Route path="/studyplan" component={StudyPlanListPage} /> <Route path="/studyplan" component={StudyPlanListPage} />
<Route path="/subject/edit" component={SubjectEditPage} /> <Route path="/subject/edit" component={SubjectEditPage} />
<PrivateRoute path="/admin" component={AdminPage} role="admin" /> <Route path="/admin" component={AdminPage} />
{/* <PrivateRoute path="/admin" component={AdminPage} role="admin" /> */}
<Route component={ErrorPage} /> <Route component={ErrorPage} />
</Switch> </Switch>
......
import styles from "./admin.module.scss";
const AdminPage = () => {
return (
<>
<p className={`position-absolute user-select-none ${styles.status}`}>관리자님, 환영합니다. | <span className={styles.cursor}>로그아웃</span></p>
</>
)
}
export default AdminPage
\ No newline at end of file
.status {
top: 5px;
right: 3px;
& .cursor {
cursor: pointer;
&:hover {
color: crimson;
}
}
}
\ No newline at end of file
const AdminPage = () => {
return (
<></>
)
}
export default AdminPage
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment