Skip to content

Commit 0b97860

Browse files
yomybabynowgnuesLee
authored andcommitted
feat: Reservoir detail page UI draft
1 parent de399cc commit 0b97860

File tree

6 files changed

+437
-241
lines changed

6 files changed

+437
-241
lines changed

react/src/App.tsx

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -440,21 +440,37 @@ const router = createBrowserRouter([
440440
{
441441
path: '/reservoir',
442442
handle: { labelKey: 'Reservoir' },
443-
Component: () => {
444-
return (
445-
<BAIErrorBoundary>
446-
<Suspense
447-
fallback={
448-
<Flex direction="column" style={{ maxWidth: 700 }}>
449-
<Skeleton active />
450-
</Flex>
451-
}
452-
>
453-
<ReservoirPage />
454-
</Suspense>
455-
</BAIErrorBoundary>
456-
);
457-
},
443+
children: [
444+
{
445+
path: '',
446+
Component: () => {
447+
return (
448+
<BAIErrorBoundary>
449+
<Suspense
450+
fallback={
451+
<Flex direction="column" style={{ maxWidth: 700 }}>
452+
<Skeleton active />
453+
</Flex>
454+
}
455+
>
456+
<ReservoirPage />
457+
</Suspense>
458+
</BAIErrorBoundary>
459+
);
460+
},
461+
},
462+
{
463+
path: '/reservoir/:artifactId',
464+
element: (
465+
<BAIErrorBoundary>
466+
<Suspense fallback={<Skeleton active />}>
467+
<ReservoirPage />
468+
</Suspense>
469+
</BAIErrorBoundary>
470+
),
471+
handle: { labelKey: 'Artifact Details' },
472+
},
473+
],
458474
},
459475
{
460476
path: '/settings',

0 commit comments

Comments
 (0)