File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { Suspense } from 'react' ;
1+ import { Key , Suspense } from 'react' ;
22import { Routes , Route , Navigate } from 'react-router-dom' ;
33import { Loader } from 'uiw' ;
44import { routeData } from '../routes/router' ;
@@ -16,7 +16,7 @@ export default function Controller() {
1616 < Route path = "/" element = { < Navigate replace to = "/home" /> } />
1717 < Route path = "/docs" element = { < Navigate replace to = "/docs/getting-started" /> } />
1818 < Route path = "/components" element = { < Navigate replace to = "/components/about" /> } />
19- { routeData . map ( ( { component : BasicLayout , path, children = [ ] } , idx ) => (
19+ { routeData . map ( ( { component : BasicLayout , path, children = [ ] } : any , idx ) => (
2020 < Route
2121 path = { path }
2222 key = { idx }
@@ -26,7 +26,7 @@ export default function Controller() {
2626 </ Suspense >
2727 }
2828 >
29- { children . map ( ( child , idx ) => {
29+ { children . map ( ( child : { component : any ; path : string } , idx : Key | null | undefined ) => {
3030 const Child = child . component as any ;
3131 return (
3232 < Route
You can’t perform that action at this time.
0 commit comments