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