Skip to content

Commit

Permalink
Remove obsolete dependency section in Calendar docs
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Oct 22, 2024
1 parent 355fe01 commit b62465a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/circuit-ui/components/Calendar/Calendar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ The Calendar component displays a monthly date grid. This is a low-level compone
<Story of={Stories.Base} />
<Props />

## 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
Expand Down Expand Up @@ -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 }));
},
Expand Down

0 comments on commit b62465a

Please sign in to comment.