diff --git a/frontend/src/components/controls/email/EmailForm.tsx b/frontend/src/components/controls/email/EmailForm.tsx index 17d522f1..3cb7408c 100644 --- a/frontend/src/components/controls/email/EmailForm.tsx +++ b/frontend/src/components/controls/email/EmailForm.tsx @@ -29,7 +29,7 @@ export const EmailForm = ({value, onChange, attachmentsAvailable, textEditorRepl let getToolbarCustomButtons: (editorState: EditorState) => JSX.Element[] = () => []; if (textEditorReplacements && textEditorReplacements.length) { getToolbarCustomButtons = (editorState: EditorState) => ( - [] + [] ); } diff --git a/frontend/src/components/controls/form-controls/inputs/TextEditorReplacements.tsx b/frontend/src/components/controls/form-controls/inputs/TextEditorReplacements.tsx index e44200b9..8e89d6b3 100644 --- a/frontend/src/components/controls/form-controls/inputs/TextEditorReplacements.tsx +++ b/frontend/src/components/controls/form-controls/inputs/TextEditorReplacements.tsx @@ -9,13 +9,12 @@ import {ITextEditorCustomReplacement} from '../../../invoice/invoice-replacement type TextEditorReplacementsProps = { onChange?: (editorState: EditorState) => void, editorState: EditorState, - replacements: ITextEditorCustomReplacement[], - addClearButton?: boolean + replacements: ITextEditorCustomReplacement[] } -export const TextEditorReplacements = ({onChange, editorState, replacements, addClearButton}: TextEditorReplacementsProps) => { +export const TextEditorReplacements = ({onChange, editorState, replacements}: TextEditorReplacementsProps) => { const [open, setOpen] = useState(false); const addPlaceholder = (placeholder: string): void => { @@ -60,7 +59,7 @@ export const TextEditorReplacements = ({onChange, editorState, replacements, add - {addClearButton ? : null} + ); };