Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
e21c5c14
Commit
e21c5c14
authored
Oct 14, 2021
by
Kim, Subin
Browse files
AdminPage status 추가
parent
bbd589f3
Changes
4
Show whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
e21c5c14
...
@@ -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
>
...
...
client/src/pages/Admin/AdminPage.js
0 → 100644
View file @
e21c5c14
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
client/src/pages/Admin/admin.module.scss
0 → 100644
View file @
e21c5c14
.status
{
top
:
5px
;
right
:
3px
;
&
.cursor
{
cursor
:
pointer
;
&
:hover
{
color
:
crimson
;
}
}
}
\ No newline at end of file
client/src/pages/AdminPage.js
deleted
100644 → 0
View file @
bbd589f3
const
AdminPage
=
()
=>
{
return
(
<><
/
>
)
}
export
default
AdminPage
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment