Remove unused parameters

pull/28788/head^2
Florian Duros 2022-10-19 19:29:42 +02:00
parent 63c3a55758
commit c7e83baa36
No known key found for this signature in database
GPG Key ID: 9700AA5870258A0B
2 changed files with 3 additions and 4 deletions

View File

@ -51,8 +51,7 @@ export function EditWysiwygComposer({ editorStateTransfer, ...props }: EditWysiw
onChange={onChange} onChange={onChange}
onSend={editMessage} onSend={editMessage}
{...props}> {...props}>
{ (ref, wysiwyg, { (ref) => (
content) => (
<> <>
<Content disabled={props.disabled} ref={ref} /> <Content disabled={props.disabled} ref={ref} />
<EditionButtons onCancelClick={endEditing} onSaveClick={editMessage} isSaveDisabled={isSaveDisabled} /> <EditionButtons onCancelClick={endEditing} onSaveClick={editMessage} isSaveDisabled={isSaveDisabled} />

View File

@ -29,7 +29,7 @@ interface WysiwygComposerProps {
children?: ( children?: (
ref: MutableRefObject<HTMLDivElement | null>, ref: MutableRefObject<HTMLDivElement | null>,
wysiwyg: FormattingFunctions, wysiwyg: FormattingFunctions,
content: string) => ReactNode; ) => ReactNode;
} }
export const WysiwygComposer = memo(function WysiwygComposer( export const WysiwygComposer = memo(function WysiwygComposer(
@ -50,7 +50,7 @@ export const WysiwygComposer = memo(function WysiwygComposer(
<div className="mx_WysiwygComposer"> <div className="mx_WysiwygComposer">
<FormattingButtons composer={wysiwyg} formattingStates={formattingStates} /> <FormattingButtons composer={wysiwyg} formattingStates={formattingStates} />
<Editor ref={ref} disabled={!isWysiwygReady || disabled} /> <Editor ref={ref} disabled={!isWysiwygReady || disabled} />
{ children?.(ref, wysiwyg, content) } { children?.(ref, wysiwyg) }
</div> </div>
); );
}); });