mirror of
https://github.com/makeplane/plane.git
synced 2025-12-29 00:24:56 +01:00
fix: badge build errors
This commit is contained in:
@@ -17,7 +17,6 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
import { WorkspaceEditionBadge } from "@/plane-web/components/workspace";
|
||||
// assets
|
||||
import packageJson from "package.json";
|
||||
import { PlaneBadge } from "./plane-badge";
|
||||
|
||||
const HELP_OPTIONS = [
|
||||
{
|
||||
|
||||
19
web/ee/components/workspace/edition-badge.tsx
Normal file
19
web/ee/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">
|
||||
Enterprise Edition
|
||||
</div>
|
||||
</Tooltip>
|
||||
);
|
||||
});
|
||||
1
web/ee/components/workspace/index.ts
Normal file
1
web/ee/components/workspace/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./edition-badge";
|
||||
Reference in New Issue
Block a user