Skip to content

Commit

Permalink
fix: 시간 디폴트 초 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj2713 committed Aug 12, 2024
1 parent 3235ebd commit bfe3a13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions admin/src/apis/lotteryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
})
);
Expand Down
1 change: 0 additions & 1 deletion admin/src/apis/rushAPI.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { RushEventType } from "@/types/rush";
import {
GetRushEventResponse,
GetRushOptionsParams,
Expand Down
7 changes: 6 additions & 1 deletion admin/src/components/TimePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ interface TimePickerProps {

export default function TimePicker({ time, disabled = false, onChangeTime }: TimePickerProps) {
const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
onChangeTime(e.target.value);
/**
* 시간-분 까지만 선택 가능
* 초는 0초를 디폴트로 넣는다
*/
const time = `${e.target.value}:00`;
onChangeTime(time);
};

return (
Expand Down

0 comments on commit bfe3a13

Please sign in to comment.