Remove console, unused variables...

This commit is contained in:
Florian Duros 2022-10-05 14:59:02 +02:00
parent bfb1638ff3
commit 1d820cf837
No known key found for this signature in database
GPG key ID: 9700AA5870258A0B
3 changed files with 4 additions and 6 deletions

View file

@ -34,7 +34,7 @@ interface WysiwygProps {
}
export function WysiwygComposer(
{ disabled = false, onChange, children, ...props }: WysiwygProps, forwardRef,
{ disabled = false, onChange, children, ...props }: WysiwygProps,
) {
const roomContext = useRoomContext();
const mxClient = useMatrixClientContext();
@ -50,9 +50,9 @@ export function WysiwygComposer(
);
return (
<div className="mx_SendMessageComposer" style={{ minHeight: '30px' }} ref={ref} contentEditable={!disabled && isWysiwygReady} suppressContentEditableWarning={true}>
<br />
<>
<div className="mx_SendMessageComposer" style={{ minHeight: '30px' }} ref={ref} contentEditable={!disabled && isWysiwygReady} />
{ children?.(memoizedSendMessage) }
</div>
</>
);
}