Merge pull request #17 from TouchInstinct/feature/change_route

Change route param
This commit is contained in:
grigoriishveps 2022-01-27 13:52:32 +03:00 committed by GitHub
commit 317ed14b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ interface Route {
icon?: React.ComponentType
childRoutes?: Route[]
component?: React.ComponentType
getUrl?: (params: Record<string, unknown>) => string
}
export interface ParametrizedRoute extends Route {
getUrl: (params: Record<string, unknown>) => string
}
export default Route