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 = () => {
|
||||
return canSubmit() ? (
|
||||
<IconButton
|
||||
src={require('@tabler/icons/send.svg')}
|
||||
title={intl.formatMessage(messages.send)}
|
||||
onClick={sendMessage}
|
||||
/>
|
||||
) : (
|
||||
<UploadButton onSelectFile={handleFiles} resetFileKey={resetFileKey} />
|
||||
);
|
||||
// return canSubmit() ? (
|
||||
// <IconButton
|
||||
// src={require('@tabler/icons/send.svg')}
|
||||
// title={intl.formatMessage(messages.send)}
|
||||
// onClick={sendMessage}
|
||||
// />
|
||||
// ) : (
|
||||
// <UploadButton onSelectFile={handleFiles} resetFileKey={resetFileKey} />
|
||||
// );
|
||||
};
|
||||
|
||||
if (!chatMessageIds) return null;
|
||||
|
|
Ładowanie…
Reference in New Issue