Skip to content

Commit

Permalink
aligning buttons with title
Browse files Browse the repository at this point in the history
Signed-off-by: R-Lawton <[email protected]>
  • Loading branch information
R-Lawton committed Oct 24, 2024
1 parent 70e325d commit 752200b
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions src/components/KuadrantOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,19 +335,6 @@ const KuadrantOverviewPage: React.FC = () => {
<Card>
<CardTitle>
<Title headingLevel="h2">{t('Policies')}</Title>
</CardTitle>
<CardBody className="pf-u-p-10">
<ResourceList
resources={[
resourceGVKMapping['AuthPolicy'],
resourceGVKMapping['DNSPolicy'],
resourceGVKMapping['RateLimitPolicy'],
resourceGVKMapping['TLSPolicy'],
]}
columns={columns}
namespace="#ALL_NS#"
paginationLimit={5}
/>
<Dropdown
isOpen={isCreateOpen}
onSelect={onMenuSelect}
Expand Down Expand Up @@ -379,6 +366,20 @@ const KuadrantOverviewPage: React.FC = () => {
</DropdownItem>
</DropdownList>
</Dropdown>
</CardTitle>
<CardBody className="pf-u-p-10">
<ResourceList
resources={[
resourceGVKMapping['AuthPolicy'],
resourceGVKMapping['DNSPolicy'],
resourceGVKMapping['RateLimitPolicy'],
resourceGVKMapping['TLSPolicy'],
]}
columns={columns}
namespace="#ALL_NS#"
paginationLimit={5}
/>

</CardBody>
</Card>
</FlexItem>
Expand All @@ -388,6 +389,12 @@ const KuadrantOverviewPage: React.FC = () => {
<Card>
<CardTitle>
<Title headingLevel="h2">{t('Gateways')}</Title>
<Button
onClick={() => handleCreateResource('Gateway')}
className="kuadrant-overview-create-button pf-u-mt-md pf-u-mr-md"
>
{t(`Create Gateway`)}
</Button>
</CardTitle>
<CardBody className="pf-u-p-10">
<ResourceList
Expand All @@ -396,19 +403,19 @@ const KuadrantOverviewPage: React.FC = () => {
namespace="#ALL_NS#"
emtpyResourceName="Gateways"
/>
<Button
onClick={() => handleCreateResource('Gateway')}
className="kuadrant-overview-create-button pf-u-mt-md pf-u-mr-md"
>
{t(`Create Gateway`)}
</Button>
</CardBody>
</Card>
</FlexItem>
<FlexItem flex={{ default: 'flex_1' }}>
<Card>
<CardTitle>
<Title headingLevel="h2">{t('APIs / HTTPRoutes')}</Title>
<Button
onClick={() => handleCreateResource('HTTPRoute')}
className="kuadrant-overview-create-button pf-u-mt-md pf-u-mr-md"
>
{t(`Create HTTPRoute`)}
</Button>
</CardTitle>
<CardBody className="pf-u-p-10">
<ResourceList
Expand All @@ -417,12 +424,6 @@ const KuadrantOverviewPage: React.FC = () => {
namespace="#ALL_NS#"
emtpyResourceName="HTTPRoutes"
/>
<Button
onClick={() => handleCreateResource('HTTPRoute')}
className="kuadrant-overview-create-button pf-u-mt-md pf-u-mr-md"
>
{t(`Create HTTPRoute`)}
</Button>
</CardBody>
</Card>
</FlexItem>
Expand Down

0 comments on commit 752200b

Please sign in to comment.