fix: fix style

This commit is contained in:
fantasticit 2022-04-02 17:57:20 +08:00
parent 28f7c21b54
commit b40edbd04f
2 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
const [visible, toggleVisible] = useToggle(false);
const selectFile = () => {
if (!isEditable || error || url) return;
if (!isEditable || url) return;
isEditable && $upload.current.click();
};
@ -110,7 +110,9 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
if (error !== 'null') {
return (
<div className={cls(styles.wrap, 'render-wrapper')} onClick={selectFile}>
<Space>
<Text>{error}</Text>
</Space>
</div>
);
}