Skip to content

Commit

Permalink
Mandatory Input update
Browse files Browse the repository at this point in the history
  • Loading branch information
apratimshukla6 committed Oct 5, 2023
1 parent d2542ee commit ba296fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Empty file added CHANGELOG.md
Empty file.
6 changes: 3 additions & 3 deletions src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ function Login(props) {
}
catch(err) {
props.navigate("/login");
}

}
}
else {
props.navigate("/login");
Expand Down Expand Up @@ -69,6 +68,7 @@ function Login(props) {
value={props.loginValues.password}
style={{color: 'white', width: '100%'}}
disableUnderline
required
endAdornment={
<InputAdornment position="end">
<IconButton
Expand All @@ -83,7 +83,7 @@ function Login(props) {
/>
</div>
<div className="login-form__row">
<button className="login-form__submit button button--main button--full" id="submit" onClick={loginAccount}>
<button disabled={!props.loginValues.password} className="login-form__submit button button--main button--full" id="submit" onClick={loginAccount}>
Login
</button>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function SignUp(props) {
value={props.values.password}
style={{color: 'white', width: '100%'}}
disableUnderline
required
endAdornment={
<InputAdornment position="end">
<IconButton
Expand All @@ -134,6 +135,7 @@ function SignUp(props) {
value={props.confirmValues.password}
style={{color: 'white', width: '100%'}}
disableUnderline
required
endAdornment={
<InputAdornment position="end">
<IconButton
Expand All @@ -149,7 +151,7 @@ function SignUp(props) {
</div>
<PasswordStrengthBar password={props.values.password} />
<div className="login-form__row">
<button className="login-form__submit button button--main button--full" id="submit" onClick={createAccount}>
<button disabled={!props.values.password && !props.confirmValues.password} className="login-form__submit button button--main button--full" id="submit" onClick={createAccount}>
Create Account
</button>
</div>
Expand Down

0 comments on commit ba296fd

Please sign in to comment.