This commit is contained in:
2020-08-22 16:26:09 +02:00
parent 26028445bf
commit 7750829b39
8 changed files with 205 additions and 77 deletions

View File

@@ -19,15 +19,22 @@ interface Props {
file: FileType;
}
const iconStyle = {
style: {
fontSize: 18,
},
};
const icons: {[name: string]: any} = {
processing: <SyncOutlined spin />,
failed: <IssuesCloseOutlined />,
success: <LockOutlined />,
processing: <SyncOutlined spin {...iconStyle} />,
failed: <IssuesCloseOutlined {...iconStyle} />,
success: <LockOutlined {...iconStyle} />,
};
const IconText = ({ icon, text, ...props }) => (
<Button
{...props}
shape="round"
icon={React.createElement(icon)}
/>
);