From 3a3d22ac55a4de9cd2732b08c09e31074d88cdee Mon Sep 17 00:00:00 2001 From: claude_code Date: Mon, 22 Jun 2026 02:33:07 +0300 Subject: [PATCH] refactor(editor): remove duplicate dictation mic from the fixed toolbar The dictation button now lives in the always-rendered page byline, so the copy in the fixed toolbar was redundant: with the toolbar enabled the mic showed up twice. Drop the DictationGroup render, its isDictationEnabled guard, and the unused import from the toolbar. Co-Authored-By: Claude Opus 4.8 --- .../editor/components/fixed-toolbar/fixed-toolbar.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/client/src/features/editor/components/fixed-toolbar/fixed-toolbar.tsx b/apps/client/src/features/editor/components/fixed-toolbar/fixed-toolbar.tsx index e59f9863..b425753e 100644 --- a/apps/client/src/features/editor/components/fixed-toolbar/fixed-toolbar.tsx +++ b/apps/client/src/features/editor/components/fixed-toolbar/fixed-toolbar.tsx @@ -13,7 +13,6 @@ import { QuickInsertsGroup } from "./groups/quick-inserts-group"; import { MoreInsertsGroup } from "./groups/more-inserts-group"; import { HistoryGroup } from "./groups/history-group"; import { AskAiGroup } from "./groups/ask-ai-group"; -import { DictationGroup } from "./groups/dictation-group"; import { workspaceAtom } from "@/features/user/atoms/current-user-atom"; import classes from "./fixed-toolbar.module.css"; @@ -31,7 +30,6 @@ export const FixedToolbar: FC = ({ const state = useToolbarState(editor); const workspace = useAtomValue(workspaceAtom); const isGenerativeAiEnabled = workspace?.settings?.ai?.generative === true; - const isDictationEnabled = workspace?.settings?.ai?.dictation === true; if (!editor || !state) return null; @@ -67,12 +65,6 @@ export const FixedToolbar: FC = ({
- {isDictationEnabled && ( - <> -
- - - )}