diff options
Diffstat (limited to 'packages/desktop/src/context')
| -rw-r--r-- | packages/desktop/src/context/layout.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/desktop/src/context/layout.tsx b/packages/desktop/src/context/layout.tsx index b30d3f350..0d3de5683 100644 --- a/packages/desktop/src/context/layout.tsx +++ b/packages/desktop/src/context/layout.tsx @@ -27,6 +27,8 @@ type SessionTabs = { all: string[] } +export type LocalProject = Partial<Project> & { worktree: string; expanded: boolean } + export const { use: useLayout, provider: LayoutProvider } = createSimpleContext({ name: "Layout", init: () => { @@ -69,7 +71,7 @@ export const { use: useLayout, provider: LayoutProvider } = createSimpleContext( ] } - function colorize(project: Partial<Project> & { worktree: string; expanded: boolean }) { + function colorize(project: LocalProject) { if (project.icon?.color) return project const color = pickAvailableColor() usedColors.add(color) |
