mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-11-08 04:31:03 +00:00
Rotate file upload icon instead of switching icon.
This commit is contained in:
1 parent
98e0edd331
commit
e8a111e6bc
2 files changed
+14
-8
No files matched your search
@@ -276,14 +276,9 @@ export function FileUploader(props: Props) {
|
||||
if (uploading) return cancel();
|
||||
if (attached) return remove();
|
||||
onClick();
|
||||
}}>
|
||||
{uploading ? (
|
||||
<XCircle size={size} />
|
||||
) : attached ? (
|
||||
<X size={size} />
|
||||
) : (
|
||||
<Plus size={size} />
|
||||
)}
|
||||
}}
|
||||
rotate={uploading || attached ? '45deg' : undefined}>
|
||||
<Plus size={size} />
|
||||
</IconButton>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user