more
This commit is contained in:
@@ -51,7 +51,6 @@ const SignupPage = () => {
|
||||
const [showAddAccount, setShowAddAccount] = useState(false);
|
||||
const [numberOfAccountsToAdd, setNumberOfAccountsToAdd] = useState();
|
||||
const modalText = "MAYBE PUT TOTAL HERE";
|
||||
const selectValues = [1, 2, 3, 4, 5, 6, 7, 8];
|
||||
|
||||
const handleChangeInput = (e, name) => {
|
||||
const newData = handleFormDataChange(e, name, data, signupFields);
|
||||
@@ -88,7 +87,11 @@ const SignupPage = () => {
|
||||
setSelectedPlan(tempPlan);
|
||||
setActiveRadioOption(tempPlan[0].value);
|
||||
};
|
||||
|
||||
const vals = [
|
||||
[1, 2, 3, 4, 5, 6, 7, 8],
|
||||
[1, 2],
|
||||
];
|
||||
const selectValues = selectedPlan === "partner" ? vals[1] : vals[0];
|
||||
const validateData = () => {
|
||||
const newData = getValidatedFormData(data, signupFields);
|
||||
const hasErrors = isFormDataHasErrors(newData);
|
||||
@@ -460,32 +463,34 @@ const SignupPage = () => {
|
||||
account username(s) and access will be setup later
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
{" "}
|
||||
<select
|
||||
id="accountNo"
|
||||
className={`form-select`}
|
||||
value={numberOfAccountsToAdd}
|
||||
name={"addAccountsSelect"}
|
||||
onChange={(e) =>
|
||||
handleChangeAccountSelect(e, "addAccountsSelect")
|
||||
}
|
||||
>
|
||||
<option
|
||||
id="ddlProducts"
|
||||
className={`select-option`}
|
||||
value=""
|
||||
></option>
|
||||
{selectValues.map((item, i) => (
|
||||
<div className="signup-select-wrapper">
|
||||
<div>{}</div>
|
||||
<div className="signup-select-box">
|
||||
<select
|
||||
id="accountNo"
|
||||
className={`form-select`}
|
||||
value={numberOfAccountsToAdd}
|
||||
name={"addAccountsSelect"}
|
||||
onChange={(e) =>
|
||||
handleChangeAccountSelect(e, "addAccountsSelect")
|
||||
}
|
||||
>
|
||||
<option
|
||||
id="ddlProducts"
|
||||
className={`select-option`}
|
||||
key={`item${i}`}
|
||||
>
|
||||
{item}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
value=""
|
||||
></option>
|
||||
{selectValues.map((item, i) => (
|
||||
<option
|
||||
id="ddlProducts"
|
||||
className={`select-option`}
|
||||
key={`item${i}`}
|
||||
>
|
||||
{item}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div className="details-button-box">
|
||||
<Button
|
||||
@@ -509,12 +514,13 @@ const SignupPage = () => {
|
||||
{!showAddAccount ? (
|
||||
<>
|
||||
<Button
|
||||
className="secondary-button"
|
||||
className="secondary-button cancel-add-account-btn"
|
||||
type="button"
|
||||
size="lg"
|
||||
onClick={handleAddAccounts}
|
||||
disabled={isBusy}
|
||||
labelText="Add Account(s)"
|
||||
style={{ marginTight: "12px;" }}
|
||||
/>
|
||||
<Button
|
||||
className="primary-button signup-proceed"
|
||||
|
||||
Reference in New Issue
Block a user