Skip to content

Commit 13d9a6a

Browse files
authored
Merge pull request #7941 from marmelab/custom-routes-missing-import
[Doc] Missing import in custom routes documentation
2 parents b3b47c7 + 18cc82f commit 13d9a6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/CustomRoutes.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ To register your own routes, pass one or several `<CustomRoutes>` elements as ch
1111
// in src/App.js
1212
import * as React from "react";
1313
import { Admin, Resource, CustomRoutes } from 'react-admin';
14+
import { Route } from "react-router-dom";
1415
import posts from './posts';
1516
import comments from './comments';
1617
import Settings from './Settings';
@@ -60,6 +61,7 @@ If you want a custom route to render without the layout (without the menu and th
6061
// in src/App.js
6162
import * as React from "react";
6263
import { Admin, CustomRoutes } from 'react-admin';
64+
import { Route } from "react-router-dom";
6365
import Settings from './Settings';
6466
import Register from './register';
6567

0 commit comments

Comments
 (0)