-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor react-router fix rootRoute name
- Loading branch information
Showing
9 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { Route } from '@tanstack/react-router'; | ||
import { rootRoot } from 'libs/routing/routes/root'; | ||
import { rootRoute } from 'libs/routing/routes/root'; | ||
import { DebugPage } from 'pages/debug'; | ||
|
||
export const debugPage = new Route({ | ||
getParentRoute: () => rootRoot, | ||
getParentRoute: () => rootRoute, | ||
path: '/debug', | ||
component: DebugPage, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { Route } from '@tanstack/react-router'; | ||
import { rootRoot } from 'libs/routing/routes/root'; | ||
import { rootRoute } from 'libs/routing/routes/root'; | ||
import { PrivacyPage } from 'pages/privacy'; | ||
import { TermsPage } from 'pages/terms'; | ||
|
||
export const termPage = new Route({ | ||
getParentRoute: () => rootRoot, | ||
getParentRoute: () => rootRoute, | ||
path: '/terms', | ||
component: TermsPage, | ||
}); | ||
|
||
export const privacyPage = new Route({ | ||
getParentRoute: () => rootRoot, | ||
getParentRoute: () => rootRoute, | ||
path: '/privacy', | ||
component: PrivacyPage, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { RootRoute } from '@tanstack/react-router'; | ||
import { App } from 'App'; | ||
|
||
export const rootRoot = new RootRoute({ | ||
export const rootRoute = new RootRoute({ | ||
component: App, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters