diff --git a/src/components/SingleDatePicker.tsx b/src/components/SingleDatePicker.tsx index fca667d..5c00d4b 100644 --- a/src/components/SingleDatePicker.tsx +++ b/src/components/SingleDatePicker.tsx @@ -79,53 +79,57 @@ export default ({ value, onSelect, localization }: Props) => { else setCurrentMonth(currentMonth + 1) } - if (selectMonth) return (
-
- - setCurrentYear(parseInt(e.target.value))} - aria-label="Year input, type a year to go to that year" - /> - + if (selectMonth) return ( +
+
+ + setCurrentYear(parseInt(e.target.value))} + aria-label="Year input, type a year to go to that year" + /> + +
+
+ {Array.from({ length: 12 }).map((_, index) => )} +
-
- {Array.from({ length: 12 }).map((_, index) => )} -
-
) - else return (
-
- - - -
-
- {l10nDays.map((day, index) =>
{day}
)} + ) + else return ( +
+
+ + + +
+
+ {l10nDays.map((day, index) =>
{day}
)} - {dates.map(date => )} + {dates.map(date => )} +
-
) + ) } \ No newline at end of file