✨ (uploadFileButton): use Button component for upload button for consistency

This commit is contained in:
cristhianzl 2024-06-06 11:58:52 -03:00
commit 3d1c1b418a

View file

@ -1,4 +1,5 @@
import ForwardedIconComponent from "../../../../../../../components/genericIconComponent"; import ForwardedIconComponent from "../../../../../../../components/genericIconComponent";
import { Button } from "../../../../../../../components/ui/button";
const UploadFileButton = ({ const UploadFileButton = ({
fileInputRef, fileInputRef,
@ -13,12 +14,14 @@ const UploadFileButton = ({
style={{ display: "none" }} style={{ display: "none" }}
onChange={handleFileChange} onChange={handleFileChange}
/> />
<button <Button
className="font-bold text-white transition-all hover:text-muted-foreground" className="font-bold text-white transition-all hover:text-muted-foreground"
onClick={handleButtonClick} onClick={handleButtonClick}
variant="none"
size="none"
> >
<ForwardedIconComponent name="PaperclipIcon" /> <ForwardedIconComponent name="PaperclipIcon" />
</button> </Button>
</div> </div>
); );
}; };