Skip to content

Commit

Permalink
🐛 Refactor layout of Dependencies details drawer
Browse files Browse the repository at this point in the history
Refactor the header and layout of tabs for the dependencies detail
drawer following the changes in konveyor#1542.

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed Nov 16, 2023
1 parent 4445104 commit daf5b4f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions client/src/app/pages/dependencies/dependency-apps-detail-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,24 @@ export const DependencyAppsDetailDrawer: React.FC<
focusKey={dependency?.name}
pageKey="analysis-app-dependencies"
drawerPanelContentProps={{ defaultSize: "600px" }}
header={
<TextContent>
<Text component="small" className={spacing.mb_0}>
Dependency
</Text>
<Title headingLevel="h2" size="lg" className={spacing.mtXs}>
{dependency?.name || ""} ({dependency?.provider || "none"})
</Title>
</TextContent>
}
>
{!dependency ? (
<StateNoData />
) : (
<>
<TextContent>
<Text component="small" className={spacing.mb_0}>
Dependencies
</Text>
<Title headingLevel="h2" size="lg" className={spacing.mtXs}>
{dependency?.name || ""}
</Title>
</TextContent>
<div>
<Tabs
activeKey={activeTabKey}
onSelect={(_event, tabKey) => setActiveTabKey(tabKey as TabKey)}
className={spacing.mtLg}
>
<Tab
eventKey={TabKey.Applications}
Expand All @@ -66,7 +67,7 @@ export const DependencyAppsDetailDrawer: React.FC<
) : null}
</Tab>
</Tabs>
</>
</div>
)}
</PageDrawerContent>
);
Expand Down

0 comments on commit daf5b4f

Please sign in to comment.