diff --git a/packages/circuit-ui/components/Calendar/Calendar.mdx b/packages/circuit-ui/components/Calendar/Calendar.mdx index 391877e719..52a4014eff 100644 --- a/packages/circuit-ui/components/Calendar/Calendar.mdx +++ b/packages/circuit-ui/components/Calendar/Calendar.mdx @@ -12,17 +12,6 @@ The Calendar component displays a monthly date grid. This is a low-level compone -## Dependencies - -The Calendar component uses the experimental [`Temporal` API](https://tc39.es/proposal-temporal/docs/) which has reached [stage 3](https://github.com/tc39/proposals#stage-3) in the [ECMAScript proposal](https://github.com/tc39/proposal-temporal) process but isn't implemented in [most browsers](https://caniuse.com/temporal) yet. Circuit UI depends on a [polyfill](https://github.com/fullcalendar/temporal-polyfill) which you need to install to use the component in your application: - -```bash -# npm -npm install temporal-polyfill -# yarn v1 -yarn add temporal-polyfill -``` - ## Usage ### Selection @@ -65,7 +54,7 @@ function App() { const handleMonthChange = (yearMonth: Temporal.PlainYearMonth) => { // Lazy-load the modifiers from the backend and ideally, preload the // surrounding months - fetchModifiers(yearMonth.toString).then( + fetchModifiers(yearMonth.toString()).then( (response: CalendarProps['modifiers']) => { setModifiers((prev = {}) => ({ ...prev, ...response })); },