diff --git a/components/calendar/package.json b/components/calendar/package.json index 4ed194e184..0ee5e46c2e 100644 --- a/components/calendar/package.json +++ b/components/calendar/package.json @@ -38,7 +38,7 @@ "@dhis2-ui/input": "9.12.0-alpha.4", "@dhis2-ui/layer": "9.12.0-alpha.4", "@dhis2-ui/popper": "9.12.0-alpha.4", - "@dhis2/multi-calendar-dates": "1.3.0", + "@dhis2/multi-calendar-dates": "2.0.0-alpha.1", "@dhis2/prop-types": "^3.1.2", "@dhis2/ui-constants": "9.12.0-alpha.4", "@dhis2/ui-icons": "9.12.0-alpha.4", diff --git a/components/calendar/src/calendar-input/calendar-input.js b/components/calendar/src/calendar-input/calendar-input.js index d8d25d7558..7f7c76fca1 100644 --- a/components/calendar/src/calendar-input/calendar-input.js +++ b/components/calendar/src/calendar-input/calendar-input.js @@ -232,7 +232,7 @@ CalendarInput.defaultProps = { CalendarInput.propTypes = { /** the calendar to use such gregory, ethiopic, nepali - full supported list here: https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/calendars.ts */ calendar: PropTypes.any.isRequired, - /** Called with signature `(null)` \|\| `({ dateCalendarString: string, dateCalendar: Temporal.ZonedDateTime })` with `dateCalendarString` being the stringified date in the specified calendar in the format `yyyy-MM-dd` */ + /** Called with signature `(null)` \|\| `({ dateCalendarString: string })` with `dateCalendarString` being the stringified date in the specified calendar in the format `yyyy-MM-dd` */ onDateSelect: PropTypes.func.isRequired, /** the size of a single cell in the table forming the calendar */ cellSize: PropTypes.string, diff --git a/components/calendar/src/calendar/calendar-table-cell.js b/components/calendar/src/calendar/calendar-table-cell.js index 4e8e43d02a..a01763899e 100644 --- a/components/calendar/src/calendar/calendar-table-cell.js +++ b/components/calendar/src/calendar/calendar-table-cell.js @@ -13,11 +13,11 @@ export const CalendarTableCell = ({ const selectedDayBackgroundColor = colors.teal700 return ( - +