mirror of https://github.com/fantasticit/think.git
fix: fix style
This commit is contained in:
parent
28f7c21b54
commit
b40edbd04f
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue