more
This commit is contained in:
@@ -36,7 +36,7 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
const [isBusy, setIsBusy] = useState(false);
|
const [isBusy, setIsBusy] = useState(false);
|
||||||
const [selectedDocumentType, setSelectedDocumentType] = useState();
|
const [selectedDocumentType, setSelectedDocumentType] = useState();
|
||||||
const [showModal, setShowModal] = useState(false);
|
const [showModal, setShowModal] = useState(false);
|
||||||
const [value, setValue] = useState([1, 2]);
|
const [verbValue, setVerbValue] = useState(1);
|
||||||
const apiUrl =
|
const apiUrl =
|
||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
? process.env.REACT_APP_API_DEV
|
? process.env.REACT_APP_API_DEV
|
||||||
@@ -151,8 +151,8 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleToggle = (val) => setValue(val);
|
const handleToggle = (val) => setVerbValue(val);
|
||||||
console.log("value", value);
|
console.log("verbValue", verbValue);
|
||||||
function handleCancelDelete() {
|
function handleCancelDelete() {
|
||||||
if (!isBusy) {
|
if (!isBusy) {
|
||||||
setShowDeleteModal(false);
|
setShowDeleteModal(false);
|
||||||
@@ -191,7 +191,7 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
<div className="toggle-header"> Response Verbosity</div>
|
<div className="toggle-header"> Response Verbosity</div>
|
||||||
<div className="toggle-box">
|
<div className="toggle-box">
|
||||||
<p className="select-billing-text">Min</p>
|
<p className="select-billing-text">Min</p>
|
||||||
<Toggle value={value} onClick={handleToggle} />
|
<Toggle value={verbValue} onClick={handleToggle} />
|
||||||
<p className="select-billing-text">Max</p>
|
<p className="select-billing-text">Max</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ const SignupPage = () => {
|
|||||||
const [showSelectPlan, setShowSelectPlan] = useState(true);
|
const [showSelectPlan, setShowSelectPlan] = useState(true);
|
||||||
const [activeRadioOption, setActiveRadioOption] = useState("partner");
|
const [activeRadioOption, setActiveRadioOption] = useState("partner");
|
||||||
const [selectedPlan, setSelectedPlan] = useState([signupRadioFields[1]]);
|
const [selectedPlan, setSelectedPlan] = useState([signupRadioFields[1]]);
|
||||||
//const [isAnnual, setIsAnnual] = useState(1);
|
|
||||||
const stripe = new Stripe(stripeApiKey);
|
const stripe = new Stripe(stripeApiKey);
|
||||||
const apiUrl =
|
const apiUrl =
|
||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
@@ -62,7 +61,7 @@ const SignupPage = () => {
|
|||||||
const [numberOfAccountsToAdd, setNumberOfAccountsToAdd] = useState();
|
const [numberOfAccountsToAdd, setNumberOfAccountsToAdd] = useState();
|
||||||
const [showPromoModal, setShowPromoModal] = useState(false);
|
const [showPromoModal, setShowPromoModal] = useState(false);
|
||||||
const [issueText, setIssueText] = useState("");
|
const [issueText, setIssueText] = useState("");
|
||||||
const [isAnnual, setIsAnnual] = useState([1, 2]);
|
const [isAnnual, setIsAnnual] = useState(1);
|
||||||
|
|
||||||
const handleChangeInput = (e, name) => {
|
const handleChangeInput = (e, name) => {
|
||||||
const newData = handleFormDataChange(e, name, data, signupFields);
|
const newData = handleFormDataChange(e, name, data, signupFields);
|
||||||
@@ -282,12 +281,13 @@ const SignupPage = () => {
|
|||||||
if (dataValues === null) {
|
if (dataValues === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
saveLeadData(dataValues);
|
saveLeadData(dataValues);
|
||||||
setShowPromoModal(!showPromoModal);
|
setShowPromoModal(!showPromoModal);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleToggle = (val) => setIsAnnual(val);
|
const handleToggle = (val) => setIsAnnual(val);
|
||||||
|
console.log("isAnnual", isAnnual);
|
||||||
const handleAddAccounts = () => {
|
const handleAddAccounts = () => {
|
||||||
setShowAddAccount(!showAddAccount);
|
setShowAddAccount(!showAddAccount);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user