File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/frontend/src/widgets/TopNavView/ui Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- import { useParams } from "@tanstack/react-router" ;
21import { Menu , X } from "lucide-react" ;
32
43import { Divider } from "@/shared/ui" ;
54import { WorkspaceNav } from "@/features/pageSidebar/ui" ;
65import { UserInfoView } from "@/widgets/UserInfoView/ui" ;
76import { useUserWorkspace } from "@/features/workspace/model/useWorkspace" ;
7+ import { useWorkspace } from "@/shared/lib/useWorkspace" ;
88
99interface TopNavProps {
1010 onExpand : ( ) => void ;
1111 isExpanded : boolean ;
1212}
1313export function TopNavView ( { onExpand, isExpanded } : TopNavProps ) {
14- const { workspaceId } = useParams ( { strict : false } ) ;
14+ const workspace = useWorkspace ( ) ;
1515 const { data } = useUserWorkspace ( ) ;
1616
1717 const getWorkspaceTitle = ( ) => {
You can’t perform that action at this time.
0 commit comments