Skip to content

Commit 56aa7d3

Browse files
committed
🤖 fix: remove unused imports and run prettier
1 parent ee0093f commit 56aa7d3

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/components/ProjectSidebar.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ import { ForceDeleteModal } from "./ForceDeleteModal";
2020
import { WorkspaceListItem } from "./WorkspaceListItem";
2121
import { RenameProvider } from "@/contexts/WorkspaceRenameContext";
2222
import { useProjectContext } from "@/contexts/ProjectContext";
23-
import { useSortedWorkspacesByProject } from "@/hooks/useSortedWorkspacesByProject";
24-
import { useApp } from "@/contexts/AppContext";
25-
import { useWorkspaceRecency } from "@/stores/WorkspaceStore";
2623
import { ChevronRight, KeyRound } from "lucide-react";
2724
import { useWorkspaceContext } from "@/contexts/WorkspaceContext";
2825

src/contexts/WorkspaceContext.test.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/* eslint-disable @typescript-eslint/consistent-type-assertions */
77
import type { FrontendWorkspaceMetadata } from "@/types/workspace";
88
import type { IPCApi } from "@/types/ipc";
9-
import type { WorkspaceSelection } from "@/components/ProjectSidebar";
109
import type { ProjectConfig } from "@/config";
1110
import { act, cleanup, render, waitFor } from "@testing-library/react";
1211
import { afterEach, describe, expect, mock, test } from "bun:test";
@@ -612,9 +611,7 @@ describe("WorkspaceContext", () => {
612611
});
613612
});
614613

615-
async function setup(props: {
616-
onProjectsUpdate: (projects: Map<string, ProjectConfig>) => void;
617-
}) {
614+
async function setup(props: { onProjectsUpdate: (projects: Map<string, ProjectConfig>) => void }) {
618615
const contextRef = { current: null as WorkspaceContext | null };
619616
function ContextCapture() {
620617
contextRef.current = useWorkspaceContext();

src/contexts/WorkspaceContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function WorkspaceProvider(props: WorkspaceProviderProps) {
8484
>(new Map());
8585
const [loading, setLoading] = useState(true);
8686
const [pendingNewWorkspaceProject, setPendingNewWorkspaceProject] = useState<string | null>(null);
87-
87+
8888
// Manage selected workspace internally with localStorage persistence
8989
const [selectedWorkspace, setSelectedWorkspace] = usePersistedState<WorkspaceSelection | null>(
9090
"selectedWorkspace",

0 commit comments

Comments
 (0)