solved contactbook multiple signers issue

This commit is contained in:
RaktimaNXG
2023-10-30 20:01:21 +05:30
parent 1f740fd84c
commit fd556965b0
@@ -2,13 +2,11 @@ import React from "react";
import Modal from "react-bootstrap/Modal";
import ModalHeader from "react-bootstrap/esm/ModalHeader";
function ModalComponent({ isShow, type,setIsShowEmail }) {
function ModalComponent({ isShow, type, setIsShowEmail }) {
return (
<Modal show={isShow}>
<ModalHeader className="bg-danger" style={{ color: "white" }}>
{type === "pdfFail" ? (
<span>Failed to load pdf!</span>
) : type === "signersAlert" ? (
{type === "signersAlert" ? (
<span>Select signers</span>
) : (
<span>Document Expired!</span>
@@ -16,27 +14,26 @@ function ModalComponent({ isShow, type,setIsShowEmail }) {
</ModalHeader>
<Modal.Body>
{type === "pdfFail" ? (
<p>Something went wrong failed to load pdf file!</p>
) : type === "signersAlert" ? (
{type === "signersAlert" ? (
<p>Please select signer for add placeholder!</p>
) : (
<p>This Document is no longer available.</p>
)}
</Modal.Body>
<Modal.Footer>
{type === "signersAlert" &&(
<button
onClick={() => {
setIsShowEmail(false)
setIsShowEmail(false);
}}
style={{
color: "black",
color: "black"
}}
type="button"
className="finishBtn"
>
Ok
</button>
Ok
</button>)}
</Modal.Footer>
</Modal>
);