mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
Updates
This commit is contained in:
@@ -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)}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user