feat: some ui updates
This commit is contained in:
@@ -99,6 +99,7 @@ interface NavItem {
|
||||
items?: {
|
||||
title: string;
|
||||
url: string;
|
||||
icon?: LucideIcon;
|
||||
}[];
|
||||
}
|
||||
|
||||
@@ -325,6 +326,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||
hasPermission,
|
||||
isAdmin,
|
||||
createWorkspace,
|
||||
isDemoMode,
|
||||
} = useWorkspace();
|
||||
const { state: sidebarState } = useSidebar();
|
||||
const isSidebarCollapsed = sidebarState === "collapsed";
|
||||
@@ -422,10 +424,12 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||
{
|
||||
title: "По проектам",
|
||||
url: buildRoute.analytics(workspaceId),
|
||||
icon: Tv,
|
||||
},
|
||||
{
|
||||
title: "По креативам",
|
||||
url: buildRoute.analyticsCreatives(workspaceId),
|
||||
icon: Folder,
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -777,7 +781,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||
workspaces,
|
||||
currentWorkspaceId: currentWorkspace?.id,
|
||||
onSelect: (workspace) => handleWorkspaceSelect(workspace.id),
|
||||
onCreate: () => setShowCreateDialog(true),
|
||||
onCreate: isDemoMode ? undefined : () => setShowCreateDialog(true),
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user