implement bookmark delete
This commit is contained in:
@@ -11,11 +11,18 @@
|
||||
// Import Routes
|
||||
|
||||
import { Route as rootRoute } from "./__root"
|
||||
import { Route as LoginImport } from "./login"
|
||||
import { Route as BookmarksImport } from "./bookmarks"
|
||||
import { Route as IndexImport } from "./index"
|
||||
|
||||
// Create/Update Routes
|
||||
|
||||
const LoginRoute = LoginImport.update({
|
||||
id: "/login",
|
||||
path: "/login",
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const BookmarksRoute = BookmarksImport.update({
|
||||
id: "/bookmarks",
|
||||
path: "/bookmarks",
|
||||
@@ -46,6 +53,13 @@ declare module "@tanstack/react-router" {
|
||||
preLoaderRoute: typeof BookmarksImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
"/login": {
|
||||
id: "/login"
|
||||
path: "/login"
|
||||
fullPath: "/login"
|
||||
preLoaderRoute: typeof LoginImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,36 +68,41 @@ declare module "@tanstack/react-router" {
|
||||
export interface FileRoutesByFullPath {
|
||||
"/": typeof IndexRoute
|
||||
"/bookmarks": typeof BookmarksRoute
|
||||
"/login": typeof LoginRoute
|
||||
}
|
||||
|
||||
export interface FileRoutesByTo {
|
||||
"/": typeof IndexRoute
|
||||
"/bookmarks": typeof BookmarksRoute
|
||||
"/login": typeof LoginRoute
|
||||
}
|
||||
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRoute
|
||||
"/": typeof IndexRoute
|
||||
"/bookmarks": typeof BookmarksRoute
|
||||
"/login": typeof LoginRoute
|
||||
}
|
||||
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: "/" | "/bookmarks"
|
||||
fullPaths: "/" | "/bookmarks" | "/login"
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: "/" | "/bookmarks"
|
||||
id: "__root__" | "/" | "/bookmarks"
|
||||
to: "/" | "/bookmarks" | "/login"
|
||||
id: "__root__" | "/" | "/bookmarks" | "/login"
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
BookmarksRoute: typeof BookmarksRoute
|
||||
LoginRoute: typeof LoginRoute
|
||||
}
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
BookmarksRoute: BookmarksRoute,
|
||||
LoginRoute: LoginRoute,
|
||||
}
|
||||
|
||||
export const routeTree = rootRoute
|
||||
@@ -97,7 +116,8 @@ export const routeTree = rootRoute
|
||||
"filePath": "__root.tsx",
|
||||
"children": [
|
||||
"/",
|
||||
"/bookmarks"
|
||||
"/bookmarks",
|
||||
"/login"
|
||||
]
|
||||
},
|
||||
"/": {
|
||||
@@ -105,6 +125,9 @@ export const routeTree = rootRoute
|
||||
},
|
||||
"/bookmarks": {
|
||||
"filePath": "bookmarks.tsx"
|
||||
},
|
||||
"/login": {
|
||||
"filePath": "login.tsx"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user