Skip to content

Commit

Permalink
Vertical stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov committed Oct 7, 2024
1 parent 22e3bc4 commit 941ea96
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { UploadIcon, FileIcon, DeleteIconv2, Button, DownloadIcon, PopUp, SVG }
import { FileUploader } from "react-drag-drop-files";
import { useTranslation } from "react-i18next";
import XLSX from "xlsx";
import XlsPreview from "./XlsPreview";
import { PRIMARY_COLOR } from "../utils";
import { Toast } from "@egovernments/digit-ui-components";

Expand All @@ -24,7 +25,6 @@ const BulkUpload = ({ multiple = true, onSubmit, fileData, onFileDelete, onFileD
const [fileUrl, setFileUrl] = useState(fileData?.[0]);
const [fileName, setFileName] = useState(null);
const [showToast, setShowToast] = useState(false);
const XlsPreview = Digit?.ComponentRegistryService?.getComponent("XlsPreview");

useEffect(() => {
const fetch = async () => {
Expand Down Expand Up @@ -136,9 +136,9 @@ const BulkUpload = ({ multiple = true, onSubmit, fileData, onFileDelete, onFileD
<div
className="uploaded-file-container-sub"
style={{ cursor: "pointer" }}
// onClick={() => {
// setShowPreview(true);
// }}
// onClick={() => {
// setShowPreview(true);
// }}
>
<FileIcon className="icon" />
<div style={{ marginLeft: "0.5rem", color: "#505A5F", fontWeight: "700" }}>{file.filename}</div>
Expand Down Expand Up @@ -199,4 +199,4 @@ const BulkUpload = ({ multiple = true, onSubmit, fileData, onFileDelete, onFileD
);
};

export default BulkUpload;
export default BulkUpload;

0 comments on commit 941ea96

Please sign in to comment.