more
This commit is contained in:
@@ -19,6 +19,7 @@ const ConfirmModal = ({
|
||||
setIssueText,
|
||||
reportDoc,
|
||||
titleText,
|
||||
isPromoModal,
|
||||
}) => {
|
||||
const title = titleText ? titleText : "Confirmation";
|
||||
|
||||
@@ -29,7 +30,7 @@ const ConfirmModal = ({
|
||||
<Modal.Title>Report an issue</Modal.Title>
|
||||
) : (
|
||||
<Modal.Title>
|
||||
{titleText ? (
|
||||
{titleText && !isPromoModal ? (
|
||||
<ExclamationTriangle
|
||||
style={{
|
||||
color: "red",
|
||||
@@ -46,7 +47,7 @@ const ConfirmModal = ({
|
||||
</Modal.Header>
|
||||
<Modal.Body>
|
||||
<span>{modalText}</span>
|
||||
{isReport ? (
|
||||
{isReport || isPromoModal ? (
|
||||
<div style={{ marginTop: "16px" }}>
|
||||
<TextInput
|
||||
key={"captionTwo"}
|
||||
@@ -54,7 +55,13 @@ const ConfirmModal = ({
|
||||
value={issueText}
|
||||
message={"data.captionTwo.message"}
|
||||
onChange={(e) => setIssueText(e.target.value)}
|
||||
label={issueText ? "" : "Description of issue"}
|
||||
label={
|
||||
issueText
|
||||
? ""
|
||||
: isPromoModal
|
||||
? "Enter your promotional code"
|
||||
: "Description of issue"
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user