[ENG-37] chore: sidebar help section revamp. (#5495)
* [ENG-37] chore: sidebar help section revamp. * fix: lint error.
This commit is contained in:
parent
e9f486eec6
commit
a11c12cd7b
6 changed files with 132 additions and 129 deletions
|
|
@ -1 +1,3 @@
|
|||
export * from "./version-number";
|
||||
export * from "./product-updates";
|
||||
export * from "./product-updates-modal";
|
||||
|
|
|
|||
9
web/ce/components/global/product-updates-modal.tsx
Normal file
9
web/ce/components/global/product-updates-modal.tsx
Normal 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(() => <></>);
|
||||
21
web/ce/components/global/product-updates.tsx
Normal file
21
web/ce/components/global/product-updates.tsx
Normal 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's new?</span>
|
||||
</Link>
|
||||
</CustomMenu.MenuItem>
|
||||
));
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue