We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8719604 commit 5d99441Copy full SHA for 5d99441
src/Components/Forms/LoginForm/LoginForm.jsx
@@ -10,6 +10,7 @@ import FormInput from '../FormInput/FormInput'
10
import { Container, Form, Button } from 'react-bootstrap'
11
import { useFormik } from 'formik'
12
import { object, string } from 'yup'
13
+import PropTypes from 'prop-types'
14
15
// import utils
16
import { getStorage, setUserId, updateStorage } from '../../../utils/storage'
@@ -121,4 +122,10 @@ const LoginForm = ({ onRegister, onLogin }) => {
121
122
)
123
}
124
125
+// validate the component
126
+LoginForm.propTypes = {
127
+ onRegister: PropTypes.func.isRequired,
128
+ onLogin: PropTypes.func.isRequired,
129
+}
130
+
131
export default LoginForm
0 commit comments