feat: update button text

pull/44/head
fantasticit 2022-05-10 11:44:28 +08:00
parent e6ef6df7d5
commit f2bb4cd2ab
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ export const WikiOrDocumentCreator: React.FC<IProps> = ({ onCreateDocument, chil
}
>
<span onClick={toggleDropdownVisible}>
{children || <Button type="primary" theme="solid" icon={<IconPlus />} size="small" />}
{children || (
<Button type="primary" theme="solid" icon={<IconPlus />} iconPosition="right">
</Button>
)}
</span>
</Dropdown>
<WikiCreator visible={visible} toggleVisible={toggleVisible} />