File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ export const routes: IRoutesConfig = {
8787 } ,
8888 {
8989 path : ':id' ,
90- component : < Outlet /> ,
90+ component : < Outlet /> ,
9191 children : [
9292 {
9393 index : true ,
94- component : < NestedPrivatePage />
94+ component : < NestedPrivatePage /> ,
9595 } ,
9696 {
9797 path : 'update' ,
Original file line number Diff line number Diff line change 11{
2- "version" : " 0.4.3 " ,
2+ "version" : " 0.4.4 " ,
33 "license" : " MIT" ,
44 "main" : " dist/index.js" ,
55 "typings" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ single route interface `IRoute`
253253``` typescript
254254export interface IRoute {
255255 /** a valid react-router-dom v6 path */
256- path: string ;
256+ path? : string ;
257257
258258 /** the component to be rendered under the path */
259259 component: React .ReactElement ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
22
33export interface IRoute {
44 /** a valid react-router-dom v6 path */
5- path : string ;
5+ path ? : string ;
66
77 /** the component to be rendered under the path */
88 component : React . ReactElement ;
You can’t perform that action at this time.
0 commit comments