Remove unused parameters

t3chguy/dedup-icons-17oct
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}
onSend={editMessage}
{...props}>
{ (ref, wysiwyg,
content) => (
{ (ref) => (
<>
<Content disabled={props.disabled} ref={ref} />
<EditionButtons onCancelClick={endEditing} onSaveClick={editMessage} isSaveDisabled={isSaveDisabled} />

View File

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