ywana-core8 0.0.664 → 0.0.665
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/wizard.js +2 -2
package/package.json
CHANGED
package/src/incubator/wizard.js
CHANGED
@@ -26,7 +26,7 @@ export const Wizard = (props) => {
|
|
26
26
|
|
27
27
|
const { form = {}, init = 0, onClose, children } = props
|
28
28
|
const [current = 0, setCurrent] = useState(init)
|
29
|
-
const [valid, setValid] = useState(
|
29
|
+
const [valid, setValid] = useState(false)
|
30
30
|
const steps = React.Children.toArray(children)
|
31
31
|
const stepRef = useRef()
|
32
32
|
|
@@ -51,7 +51,7 @@ export const Wizard = (props) => {
|
|
51
51
|
}
|
52
52
|
|
53
53
|
const currentStep = React.cloneElement(steps[current], { ref: stepRef, onChange: validate })
|
54
|
-
const nextButton = current < steps.length - 1 ? <Button label="
|
54
|
+
const nextButton = current < steps.length - 1 ? <Button label="Siguiente" action={next} raised disabled={!valid}/> : <Button label="Finish" action={finish} disabled={!valid}/>
|
55
55
|
const prevButton = current > 0 ? <Button label="Atrás" action={prev} /> : null
|
56
56
|
|
57
57
|
return (
|