MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / commitTheme

Function commitTheme

packages/app-core/src/components/CommandPalette.tsx:274–279  ·  view source on GitHub ↗
(theme: ThemeOption)

Source from the content-addressed store, hash-verified

272 }
273
274 const commitTheme = (theme: ThemeOption): void => {
275 setTheme({ id: theme.id, family: theme.family, mode: theme.mode })
276 committedRef.current = true
277 setOpen(false)
278 focusEditorNormalMode()
279 }
280
281 const switchVault = async (entry: VaultRow): Promise<void> => {
282 setOpen(false)

Callers 1

CommandPaletteFunction · 0.85

Calls 1

focusEditorNormalModeFunction · 0.90

Tested by

no test coverage detected