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}
 | 
					        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} />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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>
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue