mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
add preview success condition
This commit is contained in:
parent
dcb8a0c6c6
commit
11412c2d66
@ -90,4 +90,5 @@
|
|||||||
|
|
||||||
.success.current:before {
|
.success.current:before {
|
||||||
background: var(--font-color-heading);
|
background: var(--font-color-heading);
|
||||||
|
border-color: var(--brand-alert-green);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,8 @@ export default function Navigation(): ReactElement {
|
|||||||
const isSuccessServices = errors.services === undefined
|
const isSuccessServices = errors.services === undefined
|
||||||
const isSuccessPricing =
|
const isSuccessPricing =
|
||||||
errors.pricing === undefined && touched.pricing?.price
|
errors.pricing === undefined && touched.pricing?.price
|
||||||
const isSuccessPreview = false
|
const isSuccessPreview =
|
||||||
|
isSuccessMetadata && isSuccessServices && isSuccessPricing
|
||||||
|
|
||||||
const isSuccess =
|
const isSuccess =
|
||||||
(step === 1 && isSuccessMetadata) ||
|
(step === 1 && isSuccessMetadata) ||
|
||||||
@ -38,7 +39,6 @@ export default function Navigation(): ReactElement {
|
|||||||
<li
|
<li
|
||||||
key={step.title}
|
key={step.title}
|
||||||
onClick={() => handleStepClick(step.step)}
|
onClick={() => handleStepClick(step.step)}
|
||||||
// TODO: add success class for all steps
|
|
||||||
className={`${
|
className={`${
|
||||||
values.user.stepCurrent === step.step ? styles.current : null
|
values.user.stepCurrent === step.step ? styles.current : null
|
||||||
} ${getSuccessClass(step.step)}`}
|
} ${getSuccessClass(step.step)}`}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user