diff --git a/React-frontend/src/components/LoginForm.js b/React-frontend/src/components/LoginForm.js index 22ce3a71..682320fa 100644 --- a/React-frontend/src/components/LoginForm.js +++ b/React-frontend/src/components/LoginForm.js @@ -1,7 +1,10 @@ -import React from 'react'; +import React, { useState } from 'react'; import { MDBContainer, MDBInput, MDBBtn, MDBCard, MDBCardBody } from 'mdbreact'; const FormPage = () => { + + const [passwordType, setPasswordType] = useState('Password') + return (
@@ -22,13 +25,22 @@ const FormPage = () => { error="wrong" success="right" /> - +
+ + { + (passwordType == 'Password') ? + ( { setPasswordType('Text') }}>) + : + ( { setPasswordType('Password') }}>) + } +

Forgot