added react icons
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from "react"
|
||||
import { useRef } from "react"
|
||||
import { MdFileUpload } from "react-icons/md"
|
||||
|
||||
interface Props {
|
||||
onUpload?: (files: FileList)=>void
|
||||
@@ -12,7 +13,7 @@ const FileUploadButton: React.FC<Props> = (props) => {
|
||||
return (
|
||||
<>
|
||||
<button onClick={()=>inputRef.current?.click()} >
|
||||
Upload files
|
||||
<MdFileUpload size="40"/>
|
||||
</button>
|
||||
<input type="file" multiple className="hidden" ref={inputRef} onInput={()=>{
|
||||
if (inputRef.current && inputRef.current.files){
|
||||
|
||||
Reference in New Issue
Block a user