Skip to content

Commit 4dd37f6

Browse files
committed
rename files
1 parent 3e5527a commit 4dd37f6

File tree

8 files changed

+43
-43
lines changed

8 files changed

+43
-43
lines changed

src/core/router/route-tree.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Route as LoginImport } from './../../scenes/login'
1515
import { Route as AuthImport } from './../../scenes/_auth'
1616
import { Route as IndexImport } from './../../scenes/index'
1717
import { Route as AuthDashboardIndexImport } from './../../scenes/_auth/dashboard/index'
18-
import { Route as AuthDashboardDeskDeskIdIndexImport } from './../../scenes/_auth/dashboard/desk/$deskId/index'
18+
import { Route as AuthDashboardDeckDeckIdIndexImport } from './../../scenes/_auth/dashboard/deck/$deckId/index'
1919

2020
// Create/Update Routes
2121

@@ -42,10 +42,10 @@ const AuthDashboardIndexRoute = AuthDashboardIndexImport.update({
4242
getParentRoute: () => AuthRoute,
4343
} as any)
4444

45-
const AuthDashboardDeskDeskIdIndexRoute =
46-
AuthDashboardDeskDeskIdIndexImport.update({
47-
id: '/dashboard/desk/$deskId/',
48-
path: '/dashboard/desk/$deskId/',
45+
const AuthDashboardDeckDeckIdIndexRoute =
46+
AuthDashboardDeckDeckIdIndexImport.update({
47+
id: '/dashboard/deck/$deckId/',
48+
path: '/dashboard/deck/$deckId/',
4949
getParentRoute: () => AuthRoute,
5050
} as any)
5151

@@ -81,11 +81,11 @@ declare module '@tanstack/react-router' {
8181
preLoaderRoute: typeof AuthDashboardIndexImport
8282
parentRoute: typeof AuthImport
8383
}
84-
'/_auth/dashboard/desk/$deskId/': {
85-
id: '/_auth/dashboard/desk/$deskId/'
86-
path: '/dashboard/desk/$deskId'
87-
fullPath: '/dashboard/desk/$deskId'
88-
preLoaderRoute: typeof AuthDashboardDeskDeskIdIndexImport
84+
'/_auth/dashboard/deck/$deckId/': {
85+
id: '/_auth/dashboard/deck/$deckId/'
86+
path: '/dashboard/deck/$deckId'
87+
fullPath: '/dashboard/deck/$deckId'
88+
preLoaderRoute: typeof AuthDashboardDeckDeckIdIndexImport
8989
parentRoute: typeof AuthImport
9090
}
9191
}
@@ -95,12 +95,12 @@ declare module '@tanstack/react-router' {
9595

9696
interface AuthRouteChildren {
9797
AuthDashboardIndexRoute: typeof AuthDashboardIndexRoute
98-
AuthDashboardDeskDeskIdIndexRoute: typeof AuthDashboardDeskDeskIdIndexRoute
98+
AuthDashboardDeckDeckIdIndexRoute: typeof AuthDashboardDeckDeckIdIndexRoute
9999
}
100100

101101
const AuthRouteChildren: AuthRouteChildren = {
102102
AuthDashboardIndexRoute: AuthDashboardIndexRoute,
103-
AuthDashboardDeskDeskIdIndexRoute: AuthDashboardDeskDeskIdIndexRoute,
103+
AuthDashboardDeckDeckIdIndexRoute: AuthDashboardDeckDeckIdIndexRoute,
104104
}
105105

106106
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren)
@@ -110,15 +110,15 @@ export interface FileRoutesByFullPath {
110110
'': typeof AuthRouteWithChildren
111111
'/login': typeof LoginRoute
112112
'/dashboard': typeof AuthDashboardIndexRoute
113-
'/dashboard/desk/$deskId': typeof AuthDashboardDeskDeskIdIndexRoute
113+
'/dashboard/deck/$deckId': typeof AuthDashboardDeckDeckIdIndexRoute
114114
}
115115

116116
export interface FileRoutesByTo {
117117
'/': typeof IndexRoute
118118
'': typeof AuthRouteWithChildren
119119
'/login': typeof LoginRoute
120120
'/dashboard': typeof AuthDashboardIndexRoute
121-
'/dashboard/desk/$deskId': typeof AuthDashboardDeskDeskIdIndexRoute
121+
'/dashboard/deck/$deckId': typeof AuthDashboardDeckDeckIdIndexRoute
122122
}
123123

124124
export interface FileRoutesById {
@@ -127,21 +127,21 @@ export interface FileRoutesById {
127127
'/_auth': typeof AuthRouteWithChildren
128128
'/login': typeof LoginRoute
129129
'/_auth/dashboard/': typeof AuthDashboardIndexRoute
130-
'/_auth/dashboard/desk/$deskId/': typeof AuthDashboardDeskDeskIdIndexRoute
130+
'/_auth/dashboard/deck/$deckId/': typeof AuthDashboardDeckDeckIdIndexRoute
131131
}
132132

133133
export interface FileRouteTypes {
134134
fileRoutesByFullPath: FileRoutesByFullPath
135-
fullPaths: '/' | '' | '/login' | '/dashboard' | '/dashboard/desk/$deskId'
135+
fullPaths: '/' | '' | '/login' | '/dashboard' | '/dashboard/deck/$deckId'
136136
fileRoutesByTo: FileRoutesByTo
137-
to: '/' | '' | '/login' | '/dashboard' | '/dashboard/desk/$deskId'
137+
to: '/' | '' | '/login' | '/dashboard' | '/dashboard/deck/$deckId'
138138
id:
139-
| '__root__'
140-
| '/'
141-
| '/_auth'
142-
| '/login'
143-
| '/_auth/dashboard/'
144-
| '/_auth/dashboard/desk/$deskId/'
139+
| '__root__'
140+
| '/'
141+
| '/_auth'
142+
| '/login'
143+
| '/_auth/dashboard/'
144+
| '/_auth/dashboard/deck/$deckId/'
145145
fileRoutesById: FileRoutesById
146146
}
147147

@@ -179,7 +179,7 @@ export const routeTree = rootRoute
179179
"filePath": "_auth.tsx",
180180
"children": [
181181
"/_auth/dashboard/",
182-
"/_auth/dashboard/desk/$deskId/"
182+
"/_auth/dashboard/deck/$deckId/"
183183
]
184184
},
185185
"/login": {
@@ -189,8 +189,8 @@ export const routeTree = rootRoute
189189
"filePath": "_auth/dashboard/index.tsx",
190190
"parent": "/_auth"
191191
},
192-
"/_auth/dashboard/desk/$deskId/": {
193-
"filePath": "_auth/dashboard/desk/$deskId/index.tsx",
192+
"/_auth/dashboard/deck/$deckId/": {
193+
"filePath": "_auth/dashboard/deck/$deckId/index.tsx",
194194
"parent": "/_auth"
195195
}
196196
}

src/pods/dashboard/components/dashboard.card.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const DashboardCardComponent: React.FC<Props> = (props: Props) => {
1313
const { deck } = props;
1414
const navigate = useNavigate();
1515

16-
const handleNavegate = (deskId: string) => {
17-
navigate({ to: '/dashboard/desk/$deskId', params: { deskId } })
16+
const handleNavegate = (deckId: string) => {
17+
navigate({ to: '/dashboard/deck/$deckId', params: { deckId } })
1818
}
1919

2020
return (

src/pods/deck/deck.pod.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from 'react';
2+
import { useParams } from '@tanstack/react-router';
3+
4+
export const DeckPod: React.FC = () => {
5+
const { deckId } = useParams({ strict: false });
6+
7+
return <h1>Deck component {deckId}</h1>
8+
}

src/pods/deck/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './deck.pod';

src/pods/desk/desk.pod.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/pods/desk/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { createFileRoute } from '@tanstack/react-router';
2+
import { DeckPod } from '#pods/deck/index.ts';
3+
4+
export const Route = createFileRoute('/_auth/dashboard/deck/$deckId/')({
5+
component: DeckPod,
6+
})

src/scenes/_auth/dashboard/desk/$deskId/index.tsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)