Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: update missed page header implementations #1995

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading