Skip to content

Commit d8a3eb6

Browse files
authored
chore: remove markdown component from billing (supabase#30664)
1 parent 91c6e7b commit d8a3eb6

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useProjectsQuery } from 'data/projects/projects-query'
22
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
33
import type { Organization } from 'types'
44
import { Admonition } from 'ui-patterns'
5-
import { Markdown } from '../Markdown'
5+
import Link from 'next/link'
66

77
interface NoProjectsOnPaidOrgInfoProps {
88
organization?: Organization
@@ -28,11 +28,11 @@ export const NoProjectsOnPaidOrgInfo = ({ organization }: NoProjectsOnPaidOrgInf
2828
type="default"
2929
title={`Your organization is on the ${orgSubscription.plan.name} plan with no projects running`}
3030
description={
31-
<Markdown
32-
className="!max-w-full"
33-
content={`The monthly fees for the paid plan still apply. To cancel your subscription, head over to
34-
your [organization billing settings](/dashboard/org/${organization?.slug}/billing).`}
35-
/>
31+
<div className="!max-w-full prose text-sm">
32+
The monthly fees for the paid plan still apply. To cancel your subscription, head over to
33+
your{' '}
34+
<Link href={`/org/${organization?.slug}/billing`}>organization billing settings</Link>
35+
</div>
3636
}
3737
/>
3838
)

apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import dayjs from 'dayjs'
44
import { ExternalLink } from 'lucide-react'
55
import Link from 'next/link'
66

7-
import { Markdown } from 'components/interfaces/Markdown'
87
import {
98
ScaffoldSection,
109
ScaffoldSectionContent,
@@ -147,10 +146,14 @@ const Subscription = () => {
147146
type="default"
148147
title="This organization is limited by the included usage"
149148
>
150-
<Markdown
151-
className="[&>p]:!leading-normal"
152-
content={`Projects may become unresponsive when this organization exceeds its [included usage quota](/org/${slug}/usage). To scale seamlessly and pay for over-usage, ${currentPlan?.id === 'free' ? 'upgrade to a paid plan.' : 'you can disable Spend Cap under the Cost Control settings.'}`}
153-
/>
149+
<div className="[&>p]:!leading-normal prose text-sm">
150+
Projects may become unresponsive when this organization exceeds its
151+
<Link href={`/org/${slug}/usage`}>included usage quota</Link>. To scale
152+
seamlessly and pay for over-usage, $
153+
{currentPlan?.id === 'free'
154+
? 'upgrade to a paid plan.'
155+
: 'you can disable Spend Cap under the Cost Control settings.'}
156+
</div>
154157
<Button
155158
type="default"
156159
className="mt-1"

0 commit comments

Comments
 (0)