Skip to content

Commit

Permalink
fix: setDate 함수명 handleDate로 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seong-hui committed Jan 12, 2025
1 parent 4e86969 commit 25686ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/common/v2/popup/DateBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ interface DateBtnProps {
startTime?: string;
endTime: string;
date: Date;
setDate: (newDate: Date) => void;
handleDate: (newDate: Date) => void;
}

function DateBtn({ isAllday, isSetDate, startTime, endTime, date, setDate }: DateBtnProps) {
function DateBtn({ isAllday, isSetDate, startTime, endTime, date, handleDate }: DateBtnProps) {
const [isOpen, setIsOpen] = useState(false);

const renderTimeText = () => {
Expand All @@ -37,7 +37,7 @@ function DateBtn({ isAllday, isSetDate, startTime, endTime, date, setDate }: Dat
};

const handleCurrentDate = (newDate: Date) => {
setDate(newDate);
handleDate(newDate);
setIsOpen(false);
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/common/v2/popup/DateTimeBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function DateTimeBtn({
startTime={startTime}
endTime={endTime}
date={date}
setDate={updateDate}
handleDate={updateDate}
/>
</DateTimeBtnContainer>
) : (
Expand All @@ -56,7 +56,7 @@ function DateTimeBtn({
startTime={startTime}
endTime={endTime}
date={date}
setDate={updateDate}
handleDate={updateDate}
/>
{!isAllday && (
<TimeBtnContainer>
Expand Down

0 comments on commit 25686ab

Please sign in to comment.