Skip to content

Commit

Permalink
chore: remove markdown component from billing (supabase#30664)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcodez authored Nov 26, 2024
1 parent 91c6e7b commit d8a3eb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useProjectsQuery } from 'data/projects/projects-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
import type { Organization } from 'types'
import { Admonition } from 'ui-patterns'
import { Markdown } from '../Markdown'
import Link from 'next/link'

interface NoProjectsOnPaidOrgInfoProps {
organization?: Organization
Expand All @@ -28,11 +28,11 @@ export const NoProjectsOnPaidOrgInfo = ({ organization }: NoProjectsOnPaidOrgInf
type="default"
title={`Your organization is on the ${orgSubscription.plan.name} plan with no projects running`}
description={
<Markdown
className="!max-w-full"
content={`The monthly fees for the paid plan still apply. To cancel your subscription, head over to
your [organization billing settings](/dashboard/org/${organization?.slug}/billing).`}
/>
<div className="!max-w-full prose text-sm">
The monthly fees for the paid plan still apply. To cancel your subscription, head over to
your{' '}
<Link href={`/org/${organization?.slug}/billing`}>organization billing settings</Link>
</div>
}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import dayjs from 'dayjs'
import { ExternalLink } from 'lucide-react'
import Link from 'next/link'

import { Markdown } from 'components/interfaces/Markdown'
import {
ScaffoldSection,
ScaffoldSectionContent,
Expand Down Expand Up @@ -147,10 +146,14 @@ const Subscription = () => {
type="default"
title="This organization is limited by the included usage"
>
<Markdown
className="[&>p]:!leading-normal"
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.'}`}
/>
<div className="[&>p]:!leading-normal prose text-sm">
Projects may become unresponsive when this organization exceeds its
<Link href={`/org/${slug}/usage`}>included usage quota</Link>. 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.'}
</div>
<Button
type="default"
className="mt-1"
Expand Down

0 comments on commit d8a3eb6

Please sign in to comment.