Skip to content

Commit

Permalink
[Platform]: Update DateFilter labels (#341)
Browse files Browse the repository at this point in the history
Update default label
  • Loading branch information
remo87 committed Mar 5, 2024
1 parent a39a8df commit 12586d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sections/src/common/Literature/DateFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const OTSlider = styled(Slider)({
});

const DateIndicator = styled("span")({
width: 65,
minWidth: 65,
maxWidth: 80,
});

const monthsBtwnDates = (startDate: Date, endDate: Date) =>
Expand Down Expand Up @@ -157,7 +158,7 @@ export function DateFilter() {
const labelDate = selectedDate(value as number);
return `${labelDate.getFullYear()}-${labelDate.getMonth() + 1}`;
}
return value;
return "YYYY-MM";
};

const handleDateRangeChange = (_event: Event, value: number[] | number, _activeThumb: number) => {
Expand Down

0 comments on commit 12586d1

Please sign in to comment.