diff --git a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx index 57edaa106..7e663087f 100644 --- a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx +++ b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx @@ -1,4 +1,3 @@ -import { CSSProperties } from "preact/compat"; import { useTriliumOption } from "../react/hooks"; /** @@ -10,17 +9,10 @@ import { useTriliumOption } from "../react/hooks"; * * ! The toolbar is not only used in the ribbon, but also in the quick edit feature. */ -export default function FormattingToolbar({ hidden }: { hidden?: boolean }) { +export default function FormattingToolbar() { const [ textNoteEditorType ] = useTriliumOption("textNoteEditorType"); - const style: CSSProperties = {}; - if (hidden) { - style.display = "none"; - } - return (textNoteEditorType === "ckeditor-classic" && -