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

Admin Editpages import

parent 319db725
import { Link, Route, Switch, useRouteMatch } from "react-router-dom"; 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 Admin = () => {
const match = useRouteMatch() const match = useRouteMatch()
...@@ -19,10 +22,10 @@ const Admin = () => { ...@@ -19,10 +22,10 @@ const Admin = () => {
</nav> </nav>
<div className="col-md-9 col-lg-10 tab-content" id="v-pills-tabContent"> <div className="col-md-9 col-lg-10 tab-content" id="v-pills-tabContent">
<Switch> <Switch>
<Route path={`${match.path}/movie`}></Route> <Route path={`${match.path}/movie`}><MovieEdit /></Route>
<Route path={`${match.path}/theater`}></Route> <Route path={`${match.path}/theater`}><TheaterEdit /></Route>
<Route path={`${match.path}/cinema`}></Route> <Route path={`${match.path}/cinema`}><CinemaEdit /></Route>
<Route path={`${match.path}`}></Route> <Route path={`${match.path}`}><MovieEdit /></Route>
</Switch> </Switch>
</div> </div>
</div> </div>
......
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.box { .box {
margin-bottom: 110px; margin-bottom: 100px;
& .navbar { & .navbar {
position: fixed; position: fixed;
......
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