fix: workspace help section badge
This commit is contained in:
parent
0dc0a2a8a8
commit
6a997bb9da
3 changed files with 25 additions and 5 deletions
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";
|
||||
Loading…
Add table
Add a link
Reference in a new issue