mirror of https://github.com/vector-im/riot-web
Remove unused parameters
parent
63c3a55758
commit
c7e83baa36
|
@ -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} />
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue