diff --git a/packages/date-picker/README.md b/packages/date-picker/README.md index 09adede6..8eef380c 100644 --- a/packages/date-picker/README.md +++ b/packages/date-picker/README.md @@ -23,14 +23,17 @@ yarn add @acusti/date-picker ### Example -To render a two-up date picker for selecting date ranges, handling date selections via the `onChange` prop and showing months using abbreviations: +To render a two-up date picker for selecting date ranges, handling date +selections via the `onChange` prop and showing months using abbreviations: ```tsx import { DatePicker } from '@acusti/date-picker'; import { useCallback, useState } from 'react'; function Popover() { - const [dateRangeStart, setDateRangeStart] = useState(null); + const [dateRangeStart, setDateRangeStart] = useState( + null, + ); const [dateRangeEnd, setDateRangeEnd] = useState(null); const handleDateRangeChange = useCallback(({ dateEnd, dateStart }) => { @@ -47,7 +50,7 @@ function Popover() { onChange={handleDateRangeChange} useMonthAbbreviations /> - ) + ); } ```