WIP for document upload on invoice enter.

This commit is contained in:
Patrick Fic
2020-04-13 11:06:01 -07:00
parent 224029a1e8
commit 502debae2e
4 changed files with 86 additions and 45 deletions

View File

@@ -2,13 +2,14 @@ import { UploadOutlined } from "@ant-design/icons";
import { Button, Upload } from "antd";
import React from "react";
export default function DocumentsUploadComponent({ handleUpload }) {
export default function DocumentsUploadComponent({ handleUpload, UploadRef }) {
return (
<div>
<Upload
multiple={true}
customRequest={handleUpload}
accept="audio/*,video/*,image/*"
ref={UploadRef}
>
<Button>
<UploadOutlined /> Click to Upload