kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Disable submit button
rodzic
751c031420
commit
7557445a3e
|
@ -201,15 +201,15 @@ const ChatBox: React.FC<IChatBox> = ({ chat, onSetInputRef, autosize }) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderActionButton = () => {
|
const renderActionButton = () => {
|
||||||
return canSubmit() ? (
|
// return canSubmit() ? (
|
||||||
<IconButton
|
// <IconButton
|
||||||
src={require('@tabler/icons/send.svg')}
|
// src={require('@tabler/icons/send.svg')}
|
||||||
title={intl.formatMessage(messages.send)}
|
// title={intl.formatMessage(messages.send)}
|
||||||
onClick={sendMessage}
|
// onClick={sendMessage}
|
||||||
/>
|
// />
|
||||||
) : (
|
// ) : (
|
||||||
<UploadButton onSelectFile={handleFiles} resetFileKey={resetFileKey} />
|
// <UploadButton onSelectFile={handleFiles} resetFileKey={resetFileKey} />
|
||||||
);
|
// );
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!chatMessageIds) return null;
|
if (!chatMessageIds) return null;
|
||||||
|
|
Ładowanie…
Reference in New Issue