Skip to content

Commit

Permalink
fix: revert code DateRangeModal
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnguyendinh committed May 8, 2024
1 parent 133d55d commit cef34d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/components/commons/CustomFilter/DateRangeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const DateRangeModal: React.FC<DateRangeModalProps> = ({ onClose, onDateRangeCha
onClose?.();
if (dateRange[0] === null || dateRange[1] === null) {
onClearValue && onClearValue({ fromDate: "", toDate: "" });
onDateRangeChange({ fromDate: "", toDate: "" });
}
};

Expand Down
1 change: 1 addition & 0 deletions src/pages/ProtocolParameter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ export const FilterComponent: React.FC<FilterComponentProps> = ({
open={showDaterange}
value={dateRange}
onDateRangeChange={({ fromDate, toDate }) => setDateRange({ fromDate, toDate })}
onClearValue={() => setDateRange({ fromDate: "", toDate: "" })}
/>
</FilterContainer>
</ClickAwayListener>
Expand Down

0 comments on commit cef34d5

Please sign in to comment.