mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-03 20:21:40 +00:00
feat: use get workspace profile in frontend
This commit is contained in:
@ -1,12 +1,10 @@
|
||||
import { globalService } from "../services";
|
||||
import { workspaceService } from "../services";
|
||||
import Icon from "./Icon";
|
||||
|
||||
const DemoBanner: React.FC = () => {
|
||||
const {
|
||||
workspaceProfile: {
|
||||
profile: { mode },
|
||||
},
|
||||
} = globalService.getState();
|
||||
workspaceProfile: { mode },
|
||||
} = workspaceService.getState();
|
||||
const shouldShow = mode === "demo";
|
||||
|
||||
if (!shouldShow) return null;
|
||||
|
Reference in New Issue
Block a user