Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 365 | Rev 376 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 365 Rev 375
Línea 6... Línea 6...
6
 
6
 
Línea 7... Línea 7...
7
const Test = (props) => {
7
const Test = (props) => {
8
 
8
 
-
 
9
    //init states 
9
    //init states 
10
    const [confirmationBoxShow, setConfirmationBoxShow] = useState(false);
Línea 10... Línea 11...
10
    const [confirmationBoxShow, setConfirmationBoxShow] = useState(false);
11
    const [valid, setValid] = useState(false);
11
    const [page, setPage] = useState(0);
12
    const [page, setPage] = useState(0);
Línea 65... Línea 66...
65
                if (!question.answer) {
66
                if (!question.answer) {
66
                    formValid = false;
67
                    formValid = false;
67
                }
68
                }
68
            })
69
            })
69
        })
70
        })
70
 
-
 
-
 
71
        setValid(formValid);
71
        return formValid;
72
        return formValid;
72
    }
73
    }
Línea 73... Línea 74...
73
 
74
 
74
    /**
75
    /**
Línea 138... Línea 139...
138
                            />
139
                            />
Línea 139... Línea 140...
139
 
140
 
140
 
141
 
141
                            <button
142
                            <button
-
 
143
                                type="buttton"
142
                                type="buttton"
144
                                className="btn btn-secundary"
143
                                className="btn btn-primary"
145
                                disabled ={!valid}
144
                                onClick={() => handleSubmit()}>
146
                                onClick={() => handleSubmit()}>
145
                                {backendVars.LBL_SAVE}
147
                                {backendVars.LBL_SAVE}
146
                            </button>
148
                            </button>