File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
web/src/components/MemoEditor/ActionButton Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Button } from "@usememos/mui" ;
2
- import { PaperclipIcon } from "lucide-react" ;
2
+ import { LoaderIcon , PaperclipIcon } from "lucide-react" ;
3
3
import { useContext , useRef , useState } from "react" ;
4
4
import toast from "react-hot-toast" ;
5
5
import { useResourceStore } from "@/store/v1" ;
@@ -67,7 +67,7 @@ const UploadResourceButton = () => {
67
67
68
68
return (
69
69
< Button className = "relative" size = "sm" variant = "plain" disabled = { state . uploadingFlag } >
70
- < PaperclipIcon className = "w-5 h-5 mx-auto" />
70
+ { state . uploadingFlag ? < LoaderIcon className = "w-5 h-5 mx-auto animate-spin" /> : < PaperclipIcon className = "w-5 h-5 mx-auto" /> }
71
71
< input
72
72
className = "absolute inset-0 w-full h-full opacity-0 cursor-pointer"
73
73
ref = { fileInputRef }
You can’t perform that action at this time.
0 commit comments