-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f265b92
commit 24b00f1
Showing
10 changed files
with
341 additions
and
147 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Outlet, createRoute } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { ProductInformationBanner } from 'src/components/ProductInformationBanner/ProductInformationBanner'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
import { rootRoute } from './root'; | ||
import { strictLazyRouteComponent } from './utils'; | ||
|
||
export const ImagesRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<ProductInformationBanner bannerLocation="Images" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; | ||
|
||
export const imagesRoute = createRoute({ | ||
component: ImagesRoutes, | ||
getParentRoute: () => rootRoute, | ||
path: 'images', | ||
}); | ||
|
||
export const imagesIndexRoute = createRoute({ | ||
component: strictLazyRouteComponent( | ||
() => import('src/features/Images/ImagesLanding/ImagesLanding'), | ||
'ImagesLanding' | ||
), | ||
getParentRoute: () => imagesRoute, | ||
path: '/', | ||
}); | ||
|
||
export const imagesCreateRoute = createRoute({ | ||
component: strictLazyRouteComponent( | ||
() => import('src/features/Images/ImagesCreate/ImageCreate'), | ||
'ImageCreate' | ||
), | ||
getParentRoute: () => imagesRoute, | ||
path: 'create', | ||
}); |
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
Oops, something went wrong.