Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(themes): when theme mention is clicked, apply it correctly (#4864)
Aidan Holloway-Bidwell461271bb391c
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsxindex 6e8bd1ef32..ec5d9a7dd3 100644--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsx+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsx@@ -3,7 +3,7 @@ import type { ThemeMentionDecoratorProps } from '@macro-inc/lexical-core';import { ThemeChips } from '@theme/components/ThemeChips';import { setUserThemes, themes, userThemes } from '@theme/signals/themeSignals';import type { ThemeV2 } from '@theme/types/themeTypes';-import { applyTheme } from '@theme/utils/themeUtils';+import { pinTheme } from '@theme/utils/themeUtils';import { isThemeV2 } from '@theme/utils/themeValidation';import { cn } from '@ui';import { Show, useContext } from 'solid-js';@@ -34,7 +34,7 @@ export function ThemeMention(props: ThemeMentionDecoratorProps) {setUserThemes([...userThemes(), t]);}- applyTheme(t.id);+ pinTheme(t);openSettings('Appearance');};