Skip to content

Commit 546cadb

Browse files
committed
Fix DateRangeInput doc import
1 parent bf2c145 commit 546cadb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/DateRangeInput.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This [Enterprise Edition](https://react-admin-ee.marmelab.com)<img class="icon"
1616
Use `<DateRangeInput>` inside a form component (`<SimpleForm>`, `<TabbedForm>`, `<LongForm>`, etc.) to allow users to pick a start and an end date.
1717

1818
```tsx
19-
import { DateRangeInput } from '@react-admin/ra-form-layout';
19+
import { DateRangeInput } from '@react-admin/ra-form-layout/DateRangeInput';
2020
import { Edit, SimpleForm } from 'react-admin';
2121

2222
export const EventEdit = () => (
@@ -106,7 +106,7 @@ import {
106106
SimpleForm,
107107
TextInput,
108108
} from "react-admin";
109-
import { DateRangeInput } from '@react-admin/ra-form-layout';
109+
import { DateRangeInput } from '@react-admin/ra-form-layout/DateRangeInput';
110110

111111
const requiredValues = dates =>
112112
!dates || isEmpty(dates[0]) || isEmpty(dates[1])

0 commit comments

Comments
 (0)