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 {
|
||||
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 isSuccessPricing =
|
||||
errors.pricing === undefined && touched.pricing?.price
|
||||
const isSuccessPreview = false
|
||||
const isSuccessPreview =
|
||||
isSuccessMetadata && isSuccessServices && isSuccessPricing
|
||||
|
||||
const isSuccess =
|
||||
(step === 1 && isSuccessMetadata) ||
|
||||
@ -38,7 +39,6 @@ export default function Navigation(): ReactElement {
|
||||
<li
|
||||
key={step.title}
|
||||
onClick={() => handleStepClick(step.step)}
|
||||
// TODO: add success class for all steps
|
||||
className={`${
|
||||
values.user.stepCurrent === step.step ? styles.current : null
|
||||
} ${getSuccessClass(step.step)}`}
|
||||
|
Loading…
Reference in New Issue
Block a user