diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarHeader/DashboardSidebarHeader.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarHeader/DashboardSidebarHeader.tsx index 45241287d5f..c15a1df6580 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarHeader/DashboardSidebarHeader.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarHeader/DashboardSidebarHeader.tsx @@ -20,7 +20,10 @@ import { } from "react-icons/lu"; import { GATED_FEATURES, usePaywall } from "renderer/components/Paywall"; import { useHotkeyDisplay } from "renderer/hotkeys"; +import { electronTrpc } from "renderer/lib/electron-trpc"; import { useFolderFirstImport } from "renderer/routes/_authenticated/_dashboard/components/AddRepositoryModals/hooks/useFolderFirstImport"; +import { NavigationControls } from "renderer/routes/_authenticated/_dashboard/components/NavigationControls"; +import { SidebarToggle } from "renderer/routes/_authenticated/_dashboard/components/SidebarToggle"; import { OrganizationDropdown } from "renderer/routes/_authenticated/_dashboard/components/TopBar/components/OrganizationDropdown"; import { useTasksFilterStore } from "renderer/routes/_authenticated/_dashboard/tasks/stores/tasks-filter-state"; import { STROKE_WIDTH_THICK } from "renderer/screens/main/components/WorkspaceSidebar/constants"; @@ -59,6 +62,9 @@ export function DashboardSidebarHeader({ } }; const shortcutText = useHotkeyDisplay("NEW_WORKSPACE").text; + const { data: platform } = electronTrpc.window.getPlatform.useQuery(); + // Default to Mac while loading so we don't briefly cover the traffic lights. + const isMac = platform === undefined || platform === "darwin"; const matchRoute = useMatchRoute(); const { gateFeature } = usePaywall(); const isWorkspacesListOpen = !!matchRoute({ to: "/v2-workspaces" }); @@ -203,6 +209,16 @@ export function DashboardSidebarHeader({ return (