Skip to content

Commit

Permalink
fix: some issues (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
xigongdaEricyang authored Jan 13, 2023
1 parent 5142e50 commit 74d47d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/TimeSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ const TimeSelect = (props: IProps) => {
}, [value])

const disabledDate = (current) => {
return (
current < dayjs().subtract(14, 'days').endOf('day') ||
current > dayjs().endOf('day')
);
return current > dayjs().endOf('day');
}

const handleTimeButtonClick = (e) => {
Expand Down

0 comments on commit 74d47d1

Please sign in to comment.