Skip to content

Commit

Permalink
chore: TimeInput 날짜 제한 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonjinan096 committed Jul 23, 2024
1 parent 45c1c32 commit 7823390
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/TimeInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ type TimeInputProps = ComponentPropsWithoutRef<'input'> &
const TimeInput = forwardRef<HTMLInputElement, TimeInputProps>(
({ variant, className, ...props }, ref) => {
const now = new Date();
const minTime = new Date(now.getTime() + 24 * 60 * 60 * 1000)
.toISOString()
.slice(0, 16);
const minTime = now.toISOString().slice(0, 16);
const maxTime = new Date(now.getTime() + 72 * 60 * 60 * 1000)
.toISOString()
.slice(0, 16);
Expand Down

0 comments on commit 7823390

Please sign in to comment.