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
butter-studio
Commits
b1af5aa6
Commit
b1af5aa6
authored
Jul 05, 2021
by
Kim, Subin
Browse files
Admin Editpages import
parent
319db725
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/components/Admin/Admin.js
View file @
b1af5aa6
import
{
Link
,
Route
,
Switch
,
useRouteMatch
}
from
"
react-router-dom
"
;
import
styles
from
"
./admin.module.scss
"
import
MovieEdit
from
"
./MovieEdit
"
;
import
TheaterEdit
from
"
./TheaterEdit
"
;
import
CinemaEdit
from
"
./CinemaEdit
"
;
import
styles
from
"
./admin.module.scss
"
;
const
Admin
=
()
=>
{
const
match
=
useRouteMatch
()
...
...
@@ -19,10 +22,10 @@ const Admin = () => {
<
/nav
>
<
div
className
=
"
col-md-9 col-lg-10 tab-content
"
id
=
"
v-pills-tabContent
"
>
<
Switch
>
<
Route
path
=
{
`
${
match
.
path
}
/movie`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/theater`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/cinema`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/movie`
}
><
MovieEdit
/><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/theater`
}
><
TheaterEdit
/><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/cinema`
}
><
CinemaEdit
/><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
`
}
><
MovieEdit
/><
/Route
>
<
/Switch
>
<
/div
>
<
/div
>
...
...
client/src/components/Admin/admin.module.scss
View file @
b1af5aa6
@media
screen
and
(
max-width
:
768px
)
{
.box
{
margin-bottom
:
1
1
0px
;
margin-bottom
:
1
0
0px
;
&
.navbar
{
position
:
fixed
;
...
...
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