| ... | @@ -32,7 +32,6 @@ import { type Thread } from "../types"; | ... | @@ -32,7 +32,6 @@ import { type Thread } from "../types"; |
| 32 | import { derivePendingApprovals } from "../session-logic"; | 32 | import { derivePendingApprovals } from "../session-logic"; |
| 33 | import { gitRemoveWorktreeMutationOptions, gitStatusQueryOptions } from "../lib/gitReactQuery"; | 33 | import { gitRemoveWorktreeMutationOptions, gitStatusQueryOptions } from "../lib/gitReactQuery"; |
| 34 | import { serverConfigQueryOptions } from "../lib/serverReactQuery"; | 34 | import { serverConfigQueryOptions } from "../lib/serverReactQuery"; |
| 35 | import { useMediaQuery } from "../hooks/useMediaQuery"; | | |
| 36 | import { readNativeApi } from "../nativeApi"; | 35 | import { readNativeApi } from "../nativeApi"; |
| 37 | import { type DraftThreadEnvMode, useComposerDraftStore } from "../composerDraftStore"; | 36 | import { type DraftThreadEnvMode, useComposerDraftStore } from "../composerDraftStore"; |
| 38 | import { selectThreadTerminalState, useTerminalStateStore } from "../terminalStateStore"; | 37 | import { selectThreadTerminalState, useTerminalStateStore } from "../terminalStateStore"; |
| ... | @@ -268,7 +267,6 @@ function ProjectFavicon({ cwd }: { cwd: string }) { | ... | @@ -268,7 +267,6 @@ function ProjectFavicon({ cwd }: { cwd: string }) { |
| 268 | } | 267 | } |
| 269 | | 268 | |
| 270 | export default function Sidebar() { | 269 | export default function Sidebar() { |
| 271 | const isMobile = useMediaQuery("(max-width: 767px)"); | | |
| 272 | const projects = useStore((store) => store.projects); | 270 | const projects = useStore((store) => store.projects); |
| 273 | const threads = useStore((store) => store.threads); | 271 | const threads = useStore((store) => store.threads); |
| 274 | const markThreadUnread = useStore((store) => store.markThreadUnread); | 272 | const markThreadUnread = useStore((store) => store.markThreadUnread); |
| ... | @@ -317,7 +315,6 @@ export default function Sidebar() { | ... | @@ -317,7 +315,6 @@ export default function Sidebar() { |
| 317 | const [desktopUpdateState, setDesktopUpdateState] = useState<DesktopUpdateState | null>(null); | 315 | const [desktopUpdateState, setDesktopUpdateState] = useState<DesktopUpdateState | null>(null); |
| 318 | const shouldBrowseForProjectImmediately = shouldOpenProjectFolderPickerImmediately({ | 316 | const shouldBrowseForProjectImmediately = shouldOpenProjectFolderPickerImmediately({ |
| 319 | isElectron, | 317 | isElectron, |
| 320 | isMobile, | | |
| 321 | }); | 318 | }); |
| 322 | const shouldShowProjectPathEntry = addingProject && !shouldBrowseForProjectImmediately; | 319 | const shouldShowProjectPathEntry = addingProject && !shouldBrowseForProjectImmediately; |
| 323 | const pendingApprovalByThreadId = useMemo(() => { | 320 | const pendingApprovalByThreadId = useMemo(() => { |