fix: types
This commit is contained in:
parent
34d9c657e8
commit
64dd604ea0
2 changed files with 9 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue