mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 13:15:27 +00:00
chore: tweak plan header
This commit is contained in:
parent
7c31fd444c
commit
80304070e7
@ -36,9 +36,9 @@ const Header: React.FC = () => {
|
|||||||
<Logo className="mr-2" />
|
<Logo className="mr-2" />
|
||||||
Slash
|
Slash
|
||||||
</Link>
|
</Link>
|
||||||
{profile.plan === PlanType.PRO && (
|
{[PlanType.PRO, PlanType.ENTERPRISE].includes(profile.plan) && (
|
||||||
<span className="ml-1 text-xs px-1.5 leading-5 border rounded-full bg-blue-600 border-blue-700 text-white shadow dark:opacity-70">
|
<span className="ml-1 text-xs px-1.5 leading-5 border rounded-full bg-blue-600 border-blue-700 text-white shadow dark:opacity-70">
|
||||||
PRO
|
{profile.plan}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{shouldShowRouterSwitch && (
|
{shouldShowRouterSwitch && (
|
||||||
|
@ -5,6 +5,8 @@ export const stringifyPlanType = (planType: PlanType) => {
|
|||||||
return "Free";
|
return "Free";
|
||||||
} else if (planType === PlanType.PRO) {
|
} else if (planType === PlanType.PRO) {
|
||||||
return "Pro";
|
return "Pro";
|
||||||
|
} else if (planType === PlanType.ENTERPRISE) {
|
||||||
|
return "Enterprise";
|
||||||
} else {
|
} else {
|
||||||
return "Unknown";
|
return "Unknown";
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,6 @@ const useWorkspaceStore = create<WorkspaceState>()((set, get) => ({
|
|||||||
fetchWorkspaceProfile: async () => {
|
fetchWorkspaceProfile: async () => {
|
||||||
const workspaceProfile = (await workspaceServiceClient.getWorkspaceProfile({})).profile as WorkspaceProfile;
|
const workspaceProfile = (await workspaceServiceClient.getWorkspaceProfile({})).profile as WorkspaceProfile;
|
||||||
set({ ...get(), profile: workspaceProfile });
|
set({ ...get(), profile: workspaceProfile });
|
||||||
console.log("workspaceProfile", workspaceProfile);
|
|
||||||
return workspaceProfile;
|
return workspaceProfile;
|
||||||
},
|
},
|
||||||
fetchWorkspaceSetting: async () => {
|
fetchWorkspaceSetting: async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user