diff options
| author | Adam <[email protected]> | 2025-12-12 05:14:47 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-12 05:14:51 -0600 |
| commit | 04b4dacee3c0705725241ab3d92ac83ccb9a80a9 (patch) | |
| tree | cf4a6ce9894e915fc174cb5c19d4c05ed5342bd8 /packages/desktop/src/context/layout.tsx | |
| parent | c0e30f48c6cc497d849626026699f71503a6074d (diff) | |
| download | opencode-04b4dacee3c0705725241ab3d92ac83ccb9a80a9.tar.gz opencode-04b4dacee3c0705725241ab3d92ac83ccb9a80a9.zip | |
feat(desktop): basic alerting
Diffstat (limited to 'packages/desktop/src/context/layout.tsx')
| -rw-r--r-- | packages/desktop/src/context/layout.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/desktop/src/context/layout.tsx b/packages/desktop/src/context/layout.tsx index 9cafdce96..4ec0af601 100644 --- a/packages/desktop/src/context/layout.tsx +++ b/packages/desktop/src/context/layout.tsx @@ -7,15 +7,10 @@ import { useGlobalSDK } from "./global-sdk" import { Project } from "@opencode-ai/sdk/v2" const AVATAR_COLOR_KEYS = ["pink", "mint", "orange", "purple", "cyan", "lime"] as const - export type AvatarColorKey = (typeof AVATAR_COLOR_KEYS)[number] -export function isAvatarColorKey(value: string): value is AvatarColorKey { - return AVATAR_COLOR_KEYS.includes(value as AvatarColorKey) -} - export function getAvatarColors(key?: string) { - if (key && isAvatarColorKey(key)) { + if (key && AVATAR_COLOR_KEYS.includes(key as AvatarColorKey)) { return { background: `var(--avatar-background-${key})`, foreground: `var(--avatar-text-${key})`, @@ -50,7 +45,7 @@ export const { use: useLayout, provider: LayoutProvider } = createSimpleContext( }, }), { - name: "default-layout.v7", + name: "layout.v1", }, ) const [ephemeral, setEphemeral] = createStore<{ |
