diff --git a/admin/src/apis/lotteryAPI.ts b/admin/src/apis/lotteryAPI.ts index 3cef3109..e01b71fa 100644 --- a/admin/src/apis/lotteryAPI.ts +++ b/admin/src/apis/lotteryAPI.ts @@ -21,8 +21,10 @@ export const LotteryAPI = { resolve([ { lotteryEventId: 1, - startDate: "2024-07-26 00:00", - endDate: "2024-08-25 23:59", + startDate: "2024-07-26", + startTime: "00:00", + endDate: "2024-08-25", + endTime: "23:59", appliedCount: 1000000, winnerCount: 363, }, diff --git a/admin/src/pages/Lottery/index.tsx b/admin/src/pages/Lottery/index.tsx index e31948cc..af8f32e8 100644 --- a/admin/src/pages/Lottery/index.tsx +++ b/admin/src/pages/Lottery/index.tsx @@ -6,18 +6,20 @@ import TabHeader from "@/components/TabHeader"; import Table from "@/components/Table"; import TimePicker from "@/components/TimePicker"; import { LOTTERY_HEADER } from "@/constants/lottery"; -import { LotteryType } from "@/types/lottery"; +import { LotteryEventType } from "@/types/lottery"; export default function Lottery() { const navigate = useNavigate(); - const [lottery, setLottery] = useState({} as LotteryType); + const [lottery, setLottery] = useState({} as LotteryEventType); useEffect(() => { const data = { lotteryEventId: 1, - startDate: "2024-07-26 00:00", + startDate: "2024-07-26", + startTime: "00:00", endDate: "2024-08-25 23:59", + endTime: "23:59", appliedCount: 1000000, winnerCount: 363, };