Skip to content

Commit 765c3c1

Browse files
authored
Merge pull request #259 from OpenSignLabs/placeholder-resize
2 parents f5c0694 + f13991b commit 765c3c1

File tree

13 files changed

+851
-598
lines changed

13 files changed

+851
-598
lines changed

microfrontends/SignDocuments/src/Component/LegaDrive/LegaDrive.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Modal from "react-bootstrap/Modal";
77
import ModalHeader from "react-bootstrap/esm/ModalHeader";
88
import { themeColor, iconColor } from "../../utils/ThemeColor/backColor";
99
import { getDrive } from "../../utils/Utils";
10+
import AlertComponent from "../component/alertComponent";
1011

1112
function PdfFile() {
1213
const scrollRef = useRef(null);
@@ -26,6 +27,7 @@ function PdfFile() {
2627
const [docId, setDocId] = useState();
2728
const [handleError, setHandleError] = useState();
2829
const [folderName, setFolderName] = useState([]);
30+
const [isAlert, setIsAlert] = useState({ isShow: false, alertMessage: "" });
2931
const currentUser =
3032
localStorage.getItem(
3133
`Parse/${localStorage.getItem("parseAppId")}/currentUser`
@@ -219,8 +221,10 @@ function PdfFile() {
219221
}
220222
})
221223
.catch((err) => {
222-
console.log("axois err ", err);
223-
alert("something went wrong");
224+
setIsAlert({
225+
isShow: true,
226+
alertMessage: "something went wrong"
227+
});
224228
});
225229
} else {
226230
setError("Please fill out this field");
@@ -324,6 +328,11 @@ function PdfFile() {
324328
return (
325329
<div className="folderComponent ">
326330
<div>
331+
<AlertComponent
332+
isShow={isAlert.isShow}
333+
alertMessage={isAlert.alertMessage}
334+
setIsAlert={setIsAlert}
335+
/>
327336
<Modal show={isFolder}>
328337
<ModalHeader style={{ background: themeColor() }}>
329338
<span style={{ color: "white" }}>Add New Folder</span>

0 commit comments

Comments
 (0)