mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(docs): incorrect import path in date range picker (#3117)
This commit is contained in:
parent
67347d8713
commit
0bfa5855c7
@ -1,6 +1,6 @@
|
||||
const App = `import {DateRangePicker, Radio, RadioGroup, Button, ButtonGroup, cn} from "@nextui-org/react";
|
||||
import {today, startOfWeek, startOfMonth, endOfWeek, endOfMonth, useDateFormatter, getLocalTimeZone} from "@internationalized/date";
|
||||
import {useLocale} from "@react-aria/i18n";
|
||||
import {today, startOfWeek, startOfMonth, endOfWeek, endOfMonth, getLocalTimeZone} from "@internationalized/date";
|
||||
import {useLocale, useDateFormatter} from "@react-aria/i18n";
|
||||
|
||||
export default function App() {
|
||||
let defaultDate = {
|
||||
|
||||
@ -270,13 +270,11 @@ in multiple formats into `ZonedDateTime` objects.
|
||||
import {
|
||||
DateValue,
|
||||
now,
|
||||
useLocale,
|
||||
startOfWeek,
|
||||
startOfMonth,
|
||||
useDateFormatter,
|
||||
getLocalTimeZone,
|
||||
} from "@internationalized/date";
|
||||
import {I18nProvider} from "@react-aria/i18n";
|
||||
import {useLocale, useDateFormatter} from "@react-aria/i18n";
|
||||
```
|
||||
|
||||
<CodeDemo title="Presets" files={dateRangePickerContent.presets} />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user