diff --git a/admin/src/apis/lotteryAPI.ts b/admin/src/apis/lotteryAPI.ts index 5da50304..61d4d7fd 100644 --- a/admin/src/apis/lotteryAPI.ts +++ b/admin/src/apis/lotteryAPI.ts @@ -22,9 +22,9 @@ export const LotteryAPI = { resolve([ { startDate: "2024-07-26", - startTime: "00:00", + startTime: "00:00:00", endDate: "2024-08-25", - endTime: "23:59", + endTime: "23:59:00", appliedCount: 1000000, winnerCount: 363, status: "BEFORE", @@ -46,9 +46,9 @@ export const LotteryAPI = { return new Promise((resolve) => resolve({ startDate: "2024-08-26", - startTime: "00:00:000", + startTime: "00:00:00", endDate: "2024-09-25 23:59", - endTime: "00:00:000", + endTime: "00:00:00", winnerCount: 363, }) ); diff --git a/admin/src/apis/rushAPI.ts b/admin/src/apis/rushAPI.ts index d5de368c..9d82d88d 100644 --- a/admin/src/apis/rushAPI.ts +++ b/admin/src/apis/rushAPI.ts @@ -1,4 +1,3 @@ -import { RushEventType } from "@/types/rush"; import { GetRushEventResponse, GetRushOptionsParams, diff --git a/admin/src/components/TimePicker/index.tsx b/admin/src/components/TimePicker/index.tsx index 48cd2f2a..e5f793ae 100644 --- a/admin/src/components/TimePicker/index.tsx +++ b/admin/src/components/TimePicker/index.tsx @@ -8,7 +8,12 @@ interface TimePickerProps { export default function TimePicker({ time, disabled = false, onChangeTime }: TimePickerProps) { const handleChange = (e: ChangeEvent) => { - onChangeTime(e.target.value); + /** + * 시간-분 까지만 선택 가능 + * 초는 0초를 디폴트로 넣는다 + */ + const time = `${e.target.value}:00`; + onChangeTime(time); }; return (