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

Calender -> HorizontalCalender 변경

parent a11b53c0
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import moment from 'moment'; import moment from 'moment';
import Calender from "../Calender/Calender.js"; import HorizontalCalender from "../Calender/HorizontalCalender.js";
import timetableApi from "../../apis/timetable.api.js"; import timetableApi from "../../apis/timetable.api.js";
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors.js";
import styles from "./admin.module.scss"; import styles from "./admin.module.scss";
...@@ -37,7 +37,7 @@ const TimeTable = () => { ...@@ -37,7 +37,7 @@ const TimeTable = () => {
return ( return (
<div className="col-12 col-lg-6 ms-lg-1 mb-5"> <div className="col-12 col-lg-6 ms-lg-1 mb-5">
<Calender selectDate={selectDate} setSelectDate={setSelectDate} /> <HorizontalCalender selectDate={selectDate} setSelectDate={setSelectDate} />
{timeList.length !== 0 ? {timeList.length !== 0 ?
timeList.map(el => <div className="mt-4"> timeList.map(el => <div className="mt-4">
<h5 className="mb-0">{el.theaterName} / <p className="d-inline fs-6 mb-0">{el.theatertype.theaterTypeName}</p></h5> <h5 className="mb-0">{el.theaterName} / <p className="d-inline fs-6 mb-0">{el.theatertype.theaterTypeName}</p></h5>
......
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