[WEB-3872]chore: header switcher enhancements (#6935)
* * chore: alignment and size for header * fix: switcher close on click * chore: moved acces icon component to components
This commit is contained in:
parent
fa87ff14b7
commit
55eea1a8b7
6 changed files with 48 additions and 77 deletions
|
|
@ -7,3 +7,4 @@ export * from "./pro-icon";
|
|||
export * from "./count-chip";
|
||||
export * from "./activity";
|
||||
export * from "./switcher-label";
|
||||
export * from "./page-access-icon";
|
||||
|
|
|
|||
15
web/core/components/common/page-access-icon.tsx
Normal file
15
web/core/components/common/page-access-icon.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { ArchiveIcon, Earth, Lock } from "lucide-react";
|
||||
import { EPageAccess } from "@plane/constants";
|
||||
import { TPage } from "@plane/types";
|
||||
|
||||
export const PageAccessIcon = (page: TPage) => (
|
||||
<div>
|
||||
{page.archived_at ? (
|
||||
<ArchiveIcon className="h-2.5 w-2.5 text-custom-text-300" />
|
||||
) : page.access === EPageAccess.PUBLIC ? (
|
||||
<Earth className="h-2.5 w-2.5 text-custom-text-300" />
|
||||
) : (
|
||||
<Lock className="h-2.5 w-2.5 text-custom-text-300" />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue