(id: number)
| 76 | const validExtensions = ['.gif', '.png', '.jpg', '.jpeg']; |
| 77 | |
| 78 | const handleImageUploadClick = (id: number) => { |
| 79 | uploadId.current = id; |
| 80 | if (fileInputRef.current) { |
| 81 | fileInputRef.current.click(); |
| 82 | } |
| 83 | }; |
| 84 | |
| 85 | const onUploadImage = (e: ChangeEvent<HTMLInputElement>) => { |
| 86 | const file = e.target.files?.[0]; |
no outgoing calls
no test coverage detected
searching dependent graphs…