Skip to content

Commit

Permalink
chore: update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSin committed Dec 19, 2024
1 parent 912dfb7 commit 872d37e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
26 changes: 0 additions & 26 deletions src/renderer/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import { Route as rootRoute } from './routes/__root'
import { Route as MapImport } from './routes/_Map'
import { Route as WelcomeImport } from './routes/Welcome'
import { Route as IndexImport } from './routes/index'
import { Route as OnboardingIndexImport } from './routes/Onboarding/index'
import { Route as MapTab2Import } from './routes/_Map/Tab2'
Expand All @@ -31,12 +30,6 @@ const MapRoute = MapImport.update({
getParentRoute: () => rootRoute,
} as any)

const WelcomeRoute = WelcomeImport.update({
id: '/Welcome',
path: '/Welcome',
getParentRoute: () => rootRoute,
} as any)

const IndexRoute = IndexImport.update({
id: '/',
path: '/',
Expand Down Expand Up @@ -113,13 +106,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof IndexImport
parentRoute: typeof rootRoute
}
'/Welcome': {
id: '/Welcome'
path: '/Welcome'
fullPath: '/Welcome'
preLoaderRoute: typeof WelcomeImport
parentRoute: typeof rootRoute
}
'/_Map': {
id: '/_Map'
path: ''
Expand Down Expand Up @@ -209,7 +195,6 @@ const MapRouteWithChildren = MapRoute._addFileChildren(MapRouteChildren)

export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/Welcome': typeof WelcomeRoute
'': typeof MapRouteWithChildren
'/Onboarding/CreateJoinProjectScreen': typeof OnboardingCreateJoinProjectScreenRoute
'/Onboarding/CreateProjectScreen': typeof OnboardingCreateProjectScreenRoute
Expand All @@ -224,7 +209,6 @@ export interface FileRoutesByFullPath {

export interface FileRoutesByTo {
'/': typeof IndexRoute
'/Welcome': typeof WelcomeRoute
'': typeof MapRouteWithChildren
'/Onboarding/CreateJoinProjectScreen': typeof OnboardingCreateJoinProjectScreenRoute
'/Onboarding/CreateProjectScreen': typeof OnboardingCreateProjectScreenRoute
Expand All @@ -240,7 +224,6 @@ export interface FileRoutesByTo {
export interface FileRoutesById {
__root__: typeof rootRoute
'/': typeof IndexRoute
'/Welcome': typeof WelcomeRoute
'/_Map': typeof MapRouteWithChildren
'/Onboarding/CreateJoinProjectScreen': typeof OnboardingCreateJoinProjectScreenRoute
'/Onboarding/CreateProjectScreen': typeof OnboardingCreateProjectScreenRoute
Expand All @@ -257,7 +240,6 @@ export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
| '/'
| '/Welcome'
| ''
| '/Onboarding/CreateJoinProjectScreen'
| '/Onboarding/CreateProjectScreen'
Expand All @@ -271,7 +253,6 @@ export interface FileRouteTypes {
fileRoutesByTo: FileRoutesByTo
to:
| '/'
| '/Welcome'
| ''
| '/Onboarding/CreateJoinProjectScreen'
| '/Onboarding/CreateProjectScreen'
Expand All @@ -285,7 +266,6 @@ export interface FileRouteTypes {
id:
| '__root__'
| '/'
| '/Welcome'
| '/_Map'
| '/Onboarding/CreateJoinProjectScreen'
| '/Onboarding/CreateProjectScreen'
Expand All @@ -301,7 +281,6 @@ export interface FileRouteTypes {

export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
WelcomeRoute: typeof WelcomeRoute
MapRoute: typeof MapRouteWithChildren
OnboardingCreateJoinProjectScreenRoute: typeof OnboardingCreateJoinProjectScreenRoute
OnboardingCreateProjectScreenRoute: typeof OnboardingCreateProjectScreenRoute
Expand All @@ -314,7 +293,6 @@ export interface RootRouteChildren {

const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
WelcomeRoute: WelcomeRoute,
MapRoute: MapRouteWithChildren,
OnboardingCreateJoinProjectScreenRoute:
OnboardingCreateJoinProjectScreenRoute,
Expand All @@ -337,7 +315,6 @@ export const routeTree = rootRoute
"filePath": "__root.tsx",
"children": [
"/",
"/Welcome",
"/_Map",
"/Onboarding/CreateJoinProjectScreen",
"/Onboarding/CreateProjectScreen",
Expand All @@ -351,9 +328,6 @@ export const routeTree = rootRoute
"/": {
"filePath": "index.tsx"
},
"/Welcome": {
"filePath": "Welcome.tsx"
},
"/_Map": {
"filePath": "_Map.tsx",
"children": [
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/routes/Onboarding/JoinProjectScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function JoinProjectScreenComponent() {

const handleJoin = () => {
// TODO: Add logic to join project
navigate({ to: '/tab1' })
navigate({ to: '/Tab1' })
}

const topMenu = (
Expand Down
17 changes: 0 additions & 17 deletions src/renderer/src/routes/Welcome.tsx

This file was deleted.

0 comments on commit 872d37e

Please sign in to comment.