Skip to content

Commit 981f1d1

Browse files
committed
fix accountAdress param
1 parent 6eeeb8c commit 981f1d1

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

apps/events/src/routeTree.gen.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Route as rootRoute } from './routes/__root'
1616
import { Route as AuthenticateSuccessImport } from './routes/authenticate-success'
1717
import { Route as IndexImport } from './routes/index'
1818
import { Route as SpaceSpaceIdImport } from './routes/space/$spaceId'
19-
import { Route as FriendsAccountIdImport } from './routes/friends/$accountId'
19+
import { Route as FriendsAccountAddressImport } from './routes/friends/$accountAddress'
2020
import { Route as AccountInboxInboxIdImport } from './routes/account-inbox/$inboxId'
2121
import { Route as SpaceSpaceIdIndexImport } from './routes/space/$spaceId/index'
2222
import { Route as SpaceSpaceIdUsersImport } from './routes/space/$spaceId/users'
@@ -62,9 +62,9 @@ const SpaceSpaceIdRoute = SpaceSpaceIdImport.update({
6262
getParentRoute: () => rootRoute,
6363
} as any)
6464

65-
const FriendsAccountIdRoute = FriendsAccountIdImport.update({
66-
id: '/friends/$accountId',
67-
path: '/friends/$accountId',
65+
const FriendsAccountAddressRoute = FriendsAccountAddressImport.update({
66+
id: '/friends/$accountAddress',
67+
path: '/friends/$accountAddress',
6868
getParentRoute: () => rootRoute,
6969
} as any)
7070

@@ -150,11 +150,11 @@ declare module '@tanstack/react-router' {
150150
preLoaderRoute: typeof AccountInboxInboxIdImport
151151
parentRoute: typeof rootRoute
152152
}
153-
'/friends/$accountId': {
154-
id: '/friends/$accountId'
155-
path: '/friends/$accountId'
156-
fullPath: '/friends/$accountId'
157-
preLoaderRoute: typeof FriendsAccountIdImport
153+
'/friends/$accountAddress': {
154+
id: '/friends/$accountAddress'
155+
path: '/friends/$accountAddress'
156+
fullPath: '/friends/$accountAddress'
157+
preLoaderRoute: typeof FriendsAccountAddressImport
158158
parentRoute: typeof rootRoute
159159
}
160160
'/space/$spaceId': {
@@ -239,7 +239,7 @@ export interface FileRoutesByFullPath {
239239
'/login': typeof LoginLazyRoute
240240
'/playground': typeof PlaygroundLazyRoute
241241
'/account-inbox/$inboxId': typeof AccountInboxInboxIdRoute
242-
'/friends/$accountId': typeof FriendsAccountIdRoute
242+
'/friends/$accountAddress': typeof FriendsAccountAddressRoute
243243
'/space/$spaceId': typeof SpaceSpaceIdRouteWithChildren
244244
'/space/$spaceId/chat': typeof SpaceSpaceIdChatRoute
245245
'/space/$spaceId/events': typeof SpaceSpaceIdEventsRoute
@@ -255,7 +255,7 @@ export interface FileRoutesByTo {
255255
'/login': typeof LoginLazyRoute
256256
'/playground': typeof PlaygroundLazyRoute
257257
'/account-inbox/$inboxId': typeof AccountInboxInboxIdRoute
258-
'/friends/$accountId': typeof FriendsAccountIdRoute
258+
'/friends/$accountAddress': typeof FriendsAccountAddressRoute
259259
'/space/$spaceId/chat': typeof SpaceSpaceIdChatRoute
260260
'/space/$spaceId/events': typeof SpaceSpaceIdEventsRoute
261261
'/space/$spaceId/playground': typeof SpaceSpaceIdPlaygroundRoute
@@ -271,7 +271,7 @@ export interface FileRoutesById {
271271
'/login': typeof LoginLazyRoute
272272
'/playground': typeof PlaygroundLazyRoute
273273
'/account-inbox/$inboxId': typeof AccountInboxInboxIdRoute
274-
'/friends/$accountId': typeof FriendsAccountIdRoute
274+
'/friends/$accountAddress': typeof FriendsAccountAddressRoute
275275
'/space/$spaceId': typeof SpaceSpaceIdRouteWithChildren
276276
'/space/$spaceId/chat': typeof SpaceSpaceIdChatRoute
277277
'/space/$spaceId/events': typeof SpaceSpaceIdEventsRoute
@@ -289,7 +289,7 @@ export interface FileRouteTypes {
289289
| '/login'
290290
| '/playground'
291291
| '/account-inbox/$inboxId'
292-
| '/friends/$accountId'
292+
| '/friends/$accountAddress'
293293
| '/space/$spaceId'
294294
| '/space/$spaceId/chat'
295295
| '/space/$spaceId/events'
@@ -304,7 +304,7 @@ export interface FileRouteTypes {
304304
| '/login'
305305
| '/playground'
306306
| '/account-inbox/$inboxId'
307-
| '/friends/$accountId'
307+
| '/friends/$accountAddress'
308308
| '/space/$spaceId/chat'
309309
| '/space/$spaceId/events'
310310
| '/space/$spaceId/playground'
@@ -318,7 +318,7 @@ export interface FileRouteTypes {
318318
| '/login'
319319
| '/playground'
320320
| '/account-inbox/$inboxId'
321-
| '/friends/$accountId'
321+
| '/friends/$accountAddress'
322322
| '/space/$spaceId'
323323
| '/space/$spaceId/chat'
324324
| '/space/$spaceId/events'
@@ -335,7 +335,7 @@ export interface RootRouteChildren {
335335
LoginLazyRoute: typeof LoginLazyRoute
336336
PlaygroundLazyRoute: typeof PlaygroundLazyRoute
337337
AccountInboxInboxIdRoute: typeof AccountInboxInboxIdRoute
338-
FriendsAccountIdRoute: typeof FriendsAccountIdRoute
338+
FriendsAccountAddressRoute: typeof FriendsAccountAddressRoute
339339
SpaceSpaceIdRoute: typeof SpaceSpaceIdRouteWithChildren
340340
}
341341

@@ -345,7 +345,7 @@ const rootRouteChildren: RootRouteChildren = {
345345
LoginLazyRoute: LoginLazyRoute,
346346
PlaygroundLazyRoute: PlaygroundLazyRoute,
347347
AccountInboxInboxIdRoute: AccountInboxInboxIdRoute,
348-
FriendsAccountIdRoute: FriendsAccountIdRoute,
348+
FriendsAccountAddressRoute: FriendsAccountAddressRoute,
349349
SpaceSpaceIdRoute: SpaceSpaceIdRouteWithChildren,
350350
}
351351

@@ -364,7 +364,7 @@ export const routeTree = rootRoute
364364
"/login",
365365
"/playground",
366366
"/account-inbox/$inboxId",
367-
"/friends/$accountId",
367+
"/friends/$accountAddress",
368368
"/space/$spaceId"
369369
]
370370
},
@@ -383,8 +383,8 @@ export const routeTree = rootRoute
383383
"/account-inbox/$inboxId": {
384384
"filePath": "account-inbox/$inboxId.tsx"
385385
},
386-
"/friends/$accountId": {
387-
"filePath": "friends/$accountId.tsx"
386+
"/friends/$accountAddress": {
387+
"filePath": "friends/$accountAddress.tsx"
388388
},
389389
"/space/$spaceId": {
390390
"filePath": "space/$spaceId.tsx",

apps/events/src/routes/friends/$accountId.tsx renamed to apps/events/src/routes/friends/$accountAddress.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { usePublicAccountInboxes } from '@graphprotocol/hypergraph-react';
22
import { createFileRoute } from '@tanstack/react-router';
33
import { InboxCard } from '../../components/InboxCard';
44

5-
export const Route = createFileRoute('/friends/$accountId')({
5+
export const Route = createFileRoute('/friends/$accountAddress')({
66
component: RouteComponent,
77
});
88

0 commit comments

Comments
 (0)