Skip to content

Commit

Permalink
Ux fix for tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ir4y committed Jan 21, 2025
1 parent de5ae0c commit be0f30c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/uberComponents/DetailPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ export function DetailPage<R extends Resource>({
resource = defaultExtractPrimaryResource(bundle, { resourceType });
}
return (
<PageContainer title={getTitle(resource!)}>
<PageTabs tabs={tabs} basePath={basePath} />
<PageContainer
title={getTitle(resource!)}
layoutVariant="with-tabs"
headerContent={<PageTabs tabs={tabs} basePath={basePath} />}
>
<Routes>
{tabs.map(({ path, component }) => (
<Route path={'/' + path} element={component(resource!)} key={path} />
Expand Down

0 comments on commit be0f30c

Please sign in to comment.