Skip to content

Commit

Permalink
change the styles of the stripe portal link button
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscox committed Jan 8, 2025
1 parent 025372c commit 929b508
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/pages/settings/organization/billing/stripe-portal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Alert } from '@koyeb/design-system';
import { useManageBillingQuery } from 'src/api/hooks/billing';
import { IconSquareArrowOutUpRight } from 'src/components/icons';

Check failure on line 3 in src/pages/settings/organization/billing/stripe-portal.tsx

View workflow job for this annotation

GitHub Actions / Check types

Module '"src/components/icons"' has no exported member 'IconSquareArrowOutUpRight'.
import { LinkButton } from 'src/components/link';
import { QueryError } from 'src/components/query-error';
import { SectionHeader } from 'src/components/section-header';
Expand All @@ -15,20 +16,20 @@ export function StripePortal() {
}

return (
<section className="col gap-6">
<div className="row items-start gap-8">
<SectionHeader title={<T id="title" />} description={<T id="description" />} />
<section className="col items-start gap-4">
<SectionHeader title={<T id="title" />} description={<T id="description" />} />

<LinkButton
disabled={query.isPending || query.data === null}
href={query.data?.url}
component="a"
target="_blank"
rel="noopener noreferrer"
>
<T id="cta" />
</LinkButton>
</div>
<LinkButton
disabled={query.isPending || query.data === null}
href={query.data?.url}
component="a"
color="gray"
target="_blank"
rel="noopener noreferrer"
>
<T id="cta" />
<IconSquareArrowOutUpRight className="size-4" />
</LinkButton>

{query.data === null && <Alert variant="info" description={<T id="noBillingInformation" />} />}
</section>
Expand Down

0 comments on commit 929b508

Please sign in to comment.