[ENG-37] chore: sidebar help section revamp. (#5495)

* [ENG-37] chore: sidebar help section revamp.

* fix: lint error.
This commit is contained in:
Prateek Shourya 2024-09-02 21:29:09 +05:30 committed by GitHub
parent e9f486eec6
commit a11c12cd7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 132 additions and 129 deletions

View file

@ -1 +1,3 @@
export * from "./version-number";
export * from "./product-updates";
export * from "./product-updates-modal";

View file

@ -0,0 +1,9 @@
import { FC } from "react";
import { observer } from "mobx-react";
export type ProductUpdatesModalProps = {
isOpen: boolean;
handleClose: () => void;
};
export const ProductUpdatesModal: FC<ProductUpdatesModalProps> = observer(() => <></>);

View file

@ -0,0 +1,21 @@
import { FC } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
// ui
import { CustomMenu } from "@plane/ui";
export type ProductUpdatesProps = {
setIsChangeLogOpen: (isOpen: boolean) => void;
};
export const ProductUpdates: FC<ProductUpdatesProps> = observer(() => (
<CustomMenu.MenuItem>
<Link
href="https://go.plane.so/p-changelog"
target="_blank"
className="flex w-full items-center justify-start text-xs hover:bg-custom-background-80"
>
<span className="text-xs">What&apos;s new?</span>
</Link>
</CustomMenu.MenuItem>
));

View file

@ -24,7 +24,7 @@ export const WorkspaceEditionBadge = observer(() => {
<Button
tabIndex={-1}
variant="accent-primary"
className="w-full cursor-pointer rounded-2xl px-4 py-1.5 text-center text-sm font-medium outline-none"
className="w-fit min-w-24 cursor-pointer rounded-2xl px-2 py-1 text-center text-sm font-medium outline-none"
onClick={() => setIsPaidPlanPurchaseModalOpen(true)}
>
Upgrade