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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.664",
3
+ "version": "0.0.665",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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(true)
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="Siguiented" action={next} raised disabled={!valid}/> : <Button label="Finish" action={finish} />
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 (