TheaterEdit.js 599 Bytes
Newer Older
Kim, Subin's avatar
theater    
Kim, Subin committed
1
2
3
4
import { useState, useRef } from "react";
import TheaterTable from "./TheaterTable";
import TheaterEditForm from "./TheaterEditForm";

Kim, Subin's avatar
Kim, Subin committed
5
const TheaterEdit = () => {
Kim, Subin's avatar
theater    
Kim, Subin committed
6
7
    const [edit, setEdit] = useState({})
    const formRef = useRef(null)
Kim, Subin's avatar
Kim, Subin committed
8

Kim, Subin's avatar
theater    
Kim, Subin committed
9
10
11
12
13
14
15
    return (
        <>
            <h2 className="border-bottom border-2 text-center pb-2 me-2">현재 상영관 정보</h2>
            <TheaterTable setEdit={setEdit} formRef={formRef} />
            <h5 className="mb-3">상영관 정보 설정</h5>
            <TheaterEditForm edit={edit} formRef={formRef} />
        </>
Kim, Subin's avatar
Kim, Subin committed
16
17
18
    )
}
export default TheaterEdit