diff --git a/src/Components/Modals/ConfirmModal.js b/src/Components/Modals/ConfirmModal.js index d620afc..6fd0031 100644 --- a/src/Components/Modals/ConfirmModal.js +++ b/src/Components/Modals/ConfirmModal.js @@ -19,6 +19,7 @@ const ConfirmModal = ({ setIssueText, reportDoc, titleText, + isPromoModal, }) => { const title = titleText ? titleText : "Confirmation"; @@ -29,7 +30,7 @@ const ConfirmModal = ({ Report an issue ) : ( - {titleText ? ( + {titleText && !isPromoModal ? ( {modalText} - {isReport ? ( + {isReport || isPromoModal ? (
setIssueText(e.target.value)} - label={issueText ? "" : "Description of issue"} + label={ + issueText + ? "" + : isPromoModal + ? "Enter your promotional code" + : "Description of issue" + } />
) : ( diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 4149874..cf1b9d8 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -61,6 +61,7 @@ const SignupPage = () => { const [showAddAccount, setShowAddAccount] = useState(false); const [numberOfAccountsToAdd, setNumberOfAccountsToAdd] = useState(); const [showPromoModal, setShowPromoModal] = useState(false); + const [isPromoMembership, setIsPromoMembership] = useState(); const handleChangeInput = (e, name) => { const newData = handleFormDataChange(e, name, data, signupFields); @@ -668,9 +669,10 @@ const SignupPage = () => { )} {showPromoModal ? ( ) : ( <>