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
0254fa6b
Commit
0254fa6b
authored
Oct 07, 2021
by
Kim, Subin
Browse files
모바일 화면으로 맞추기
parent
d3e4910c
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
0254fa6b
...
@@ -9,15 +9,15 @@ import Err from "./pages/ErrorPage";
...
@@ -9,15 +9,15 @@ import Err from "./pages/ErrorPage";
function
App
()
{
function
App
()
{
return
(
return
(
<
Router
basename
=
{
process
.
env
.
PUBLIC_URL
}
>
<
Router
basename
=
{
process
.
env
.
PUBLIC_URL
}
>
<
div
className
=
"
mx-auto
"
style
=
{{
width
:
"
400px
"
}}
>
<
Switch
>
<
Switch
>
<
div
style
=
{{
width
:
"
400px
"
}}
>
<
Route
exact
path
=
"
/
"
component
=
{
Err
}
/
>
<
Route
path
=
"
/
"
component
=
{
Err
}
/
>
<
Route
path
=
"
/home
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/home
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/schedule/edit
"
component
=
{
ScheduleEditPage
}
/
>
<
Route
path
=
"
/schedule/edit
"
component
=
{
ScheduleEditPage
}
/
>
<
Route
path
=
"
/schedule
"
component
=
{
SchedulePage
}
/
>
<
Route
path
=
"
/schedule
"
component
=
{
SchedulePage
}
/
>
{
/* <PrivateRoute path="/admin" component={AdminPage} role="admin" /> */
}
<
PrivateRoute
path
=
"
/admin
"
component
=
{
AdminPage
}
role
=
"
admin
"
/>
<
/div
>
<
/Switch
>
<
/Switch
>
<
/div
>
<
/Router
>
<
/Router
>
);
);
}
}
...
...
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