[WEB-1843] chore: billing page and upgrade badge UI improvements. (#5099)

* [WEB-1843] chore: billing page and upgrade badge UI improvements.

* chore: fix sidebar collaped state.
This commit is contained in:
Prateek Shourya 2024-07-10 19:38:21 +05:30 committed by GitHub
parent c6db050443
commit 31f67e189d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 83 additions and 32 deletions

View file

@ -1,15 +1,14 @@
"use client";
import { observer } from "mobx-react";
// ui
import { Button } from "@plane/ui";
// component
import { PageHead } from "@/components/core";
// constants
import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common";
import { EUserWorkspaceRoles } from "@/constants/workspace";
// hooks
import { useUser, useWorkspace } from "@/hooks/store";
// plane web components
import { BillingRoot } from "@/plane-web/components/workspace";
const BillingSettingsPage = observer(() => {
// store hooks
@ -34,22 +33,7 @@ const BillingSettingsPage = observer(() => {
return (
<>
<PageHead title={pageTitle} />
<section className="w-full overflow-y-auto md:pr-9 pr-4">
<div>
<div className="flex items-center border-b border-custom-border-100 py-3.5">
<h3 className="text-xl font-medium">Billing & Plans</h3>
</div>
</div>
<div className="px-4 py-6">
<div>
<h4 className="text-md mb-1 leading-6">Current plan</h4>
<p className="mb-3 text-sm text-custom-text-200">You are currently using the free plan</p>
<a href={MARKETING_PRICING_PAGE_LINK} target="_blank" rel="noreferrer">
<Button variant="neutral-primary">View Plans</Button>
</a>
</div>
</div>
</section>
<BillingRoot />
</>
);
});