more
This commit is contained in:
@@ -22,6 +22,7 @@ const ConfirmModal = ({
|
||||
isPromoModal,
|
||||
cancelButtonText,
|
||||
}) => {
|
||||
const [inputValue, setInputValue] = useState("");
|
||||
const title = titleText ? titleText : "Confirmation";
|
||||
|
||||
return (
|
||||
@@ -53,11 +54,11 @@ const ConfirmModal = ({
|
||||
<TextInput
|
||||
key={"captionTwo"}
|
||||
name={"captionTwo"}
|
||||
value={issueText}
|
||||
value={inputValue}
|
||||
message={"data.captionTwo.message"}
|
||||
onChange={(e) => setIssueText(e.target.value)}
|
||||
onChange={(e) => setInputValue(e.target.value)}
|
||||
label={
|
||||
issueText
|
||||
inputValue
|
||||
? ""
|
||||
: isPromoModal
|
||||
? "Enter your promotional code"
|
||||
@@ -79,7 +80,7 @@ const ConfirmModal = ({
|
||||
<Button
|
||||
disabled={isBusy}
|
||||
className="primary-button"
|
||||
onClick={onConfirm}
|
||||
onClick={() => onConfirm(inputValue)}
|
||||
labelText={buttonLabelText}
|
||||
/>
|
||||
</Modal.Footer>
|
||||
|
||||
Reference in New Issue
Block a user