Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit c2fc496

Browse files
initial values are removed
1 parent 08daee3 commit c2fc496

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

src/pages/Login.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ const LoginSchema = Yup.object({
1515
password: Yup.string().required('Password required'),
1616
});
1717

18+
// const initialValues = {
19+
// email: 'todo@gmail.com',
20+
// password: 'password',
21+
// };
22+
1823
const initialValues = {
19-
email: 'todo@gmail.com',
20-
password: 'password',
24+
email: undefined,
25+
password: undefined,
2126
};
2227

2328
export function Login() {

src/pages/Signup.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ const SignupScheme = Yup.object({
2020
export function Signup() {
2121
const history = useHistory();
2222

23+
// const initialValues = {
24+
// email: 'todo@gmail.com',
25+
// password: 'password',
26+
// firstName: 'Vigneshwaran',
27+
// lastName: 'C',
28+
// };
29+
2330
const initialValues = {
24-
email: 'todo@gmail.com',
25-
password: 'password',
26-
firstName: 'Vigneshwaran',
27-
lastName: 'C',
31+
email: undefined,
32+
password: undefined,
33+
firstName: undefined,
34+
lastName: undefined,
2835
};
2936

3037
function handleSignup(values, { setErrors, setSubmitting }) {

0 commit comments

Comments
 (0)