Skip to content

Commit

Permalink
docs: updated jsx and removed redundant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Topener committed Apr 29, 2024
1 parent 90ce56f commit d02a84b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/docs/components/calendar-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,11 @@ Ethiopic calendar (with narrow day names, short day names and localised to Engli
</style>
</Demo>

The wrapper is a custom component that wraps the calendar and input field. It is not part of the library. This component is called `CalendarDemo` in our code, and can be found in the [source code](https://github.com/dhis2/ui/blob/08c3e684970437048179179d8cfad5e2edcfc814/docs/src/components/CalendarDemo.jsx#L6).

The Gregorian with initial date is then generated with this code.

```jsx
<CalendarDemo
<CalendarInput
label="Gregorian date (with initial date)"
component={CalendarInput}
calendar="gregory"
locale="en-GB"
date="2021-10-13"
Expand Down

0 comments on commit d02a84b

Please sign in to comment.