Skip to content

Commit

Permalink
bug: update missed page header implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jan 16, 2025
1 parent 4fd6747 commit 21a97f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions src/pages/settings/CashfreeIntegrationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ const CashfreeIntegrationDetails = () => {

return (
<div>
<PageHeader withSide>
<div className="flex items-center">
<PageHeader.Wrapper withSide>
<PageHeader.Group>
<ButtonLink
to={generatePath(CASHFREE_INTEGRATION_ROUTE, {
integrationGroup: IntegrationsTabsOptionsEnum.Community,
})}
className="mr-3"
type="button"
buttonProps={{ variant: 'quaternary', icon: 'arrow-left' }}
/>
Expand All @@ -136,7 +135,7 @@ const CashfreeIntegrationDetails = () => {
{cashfreePaymentProvider?.name}
</Typography>
)}
</div>
</PageHeader.Group>
{(canEditIntegration || canDeleteIntegration) && (
<Popper
PopperProps={{ placement: 'bottom-end' }}
Expand Down Expand Up @@ -186,7 +185,7 @@ const CashfreeIntegrationDetails = () => {
)}
</Popper>
)}
</PageHeader>
</PageHeader.Wrapper>
<div className="flex items-center px-4 py-8 md:px-12">
{loading ? (
<>
Expand Down
9 changes: 4 additions & 5 deletions src/pages/settings/CashfreeIntegrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@ const CashfreeIntegrations = () => {

return (
<>
<PageHeader withSide>
<div className="flex items-center">
<PageHeader.Wrapper withSide>
<PageHeader.Group>
<ButtonLink
to={generatePath(INTEGRATIONS_ROUTE, {
integrationGroup: IntegrationsTabsOptionsEnum.Community,
})}
className="mr-3"
type="button"
buttonProps={{ variant: 'quaternary', icon: 'arrow-left' }}
/>
Expand All @@ -108,7 +107,7 @@ const CashfreeIntegrations = () => {
{translate('text_1727619878796wmgcntkfycn')}
</Typography>
)}
</div>
</PageHeader.Group>

{canCreateIntegration && (
<Button
Expand All @@ -120,7 +119,7 @@ const CashfreeIntegrations = () => {
{translate('text_65846763e6140b469140e235')}
</Button>
)}
</PageHeader>
</PageHeader.Wrapper>
<div className="flex items-center px-4 py-8 md:px-12">
{loading ? (
<>
Expand Down

0 comments on commit 21a97f0

Please sign in to comment.