mirror of
https://github.com/makeplane/plane.git
synced 2025-12-29 00:24:56 +01:00
Merge pull request #423 from makeplane/sync/ce-ee
sync: community changes
This commit is contained in:
19
web/ce/components/workspace/edition-badge.tsx
Normal file
19
web/ce/components/workspace/edition-badge.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { observer } from "mobx-react";
|
||||
// ui
|
||||
import { Tooltip } from "@plane/ui";
|
||||
// hooks
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// assets
|
||||
import packageJson from "package.json";
|
||||
|
||||
export const WorkspaceEditionBadge = observer(() => {
|
||||
const { isMobile } = usePlatformOS();
|
||||
|
||||
return (
|
||||
<Tooltip tooltipContent={`Version: v${packageJson.version}`} isMobile={isMobile}>
|
||||
<div className="w-full cursor-default rounded-md bg-green-500/10 px-2 py-1 text-center text-xs font-medium text-green-500 outline-none leading-6">
|
||||
Community
|
||||
</div>
|
||||
</Tooltip>
|
||||
);
|
||||
});
|
||||
1
web/ce/components/workspace/index.ts
Normal file
1
web/ce/components/workspace/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./edition-badge";
|
||||
@@ -13,6 +13,8 @@ import { cn } from "@/helpers/common.helper";
|
||||
import { useAppTheme, useCommandPalette } from "@/hooks/store";
|
||||
import useOutsideClickDetector from "@/hooks/use-outside-click-detector";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// components
|
||||
import { WorkspaceEditionBadge } from "@/plane-web/components/workspace";
|
||||
// assets
|
||||
import packageJson from "package.json";
|
||||
import { PlaneBadge } from "./plane-badge";
|
||||
@@ -70,9 +72,9 @@ export const WorkspaceHelpSection: React.FC<WorkspaceHelpSectionProps> = observe
|
||||
)}
|
||||
>
|
||||
{!isCollapsed && (
|
||||
<>
|
||||
<PlaneBadge />
|
||||
</>
|
||||
<div className="w-1/2">
|
||||
<WorkspaceEditionBadge />
|
||||
</div>
|
||||
)}
|
||||
<div className={`flex items-center gap-1 ${isCollapsed ? "flex-col justify-center" : "w-1/2 justify-evenly"}`}>
|
||||
<Tooltip tooltipContent="Shortcuts" isMobile={isMobile}>
|
||||
|
||||
Reference in New Issue
Block a user