Skip to content

Commit

Permalink
required fields get asterisk
Browse files Browse the repository at this point in the history
  • Loading branch information
cskaandorp committed Apr 23, 2024
1 parent 24c6ce4 commit a9845ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asreview/webapp/src/Components/ResetPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ const ResetPassword = (props) => {
<FormControl>
<Stack spacing={3}>
<TextField
required={true}
id="password"
label="Password"
size="small"
Expand All @@ -175,6 +176,7 @@ const ResetPassword = (props) => {
}}
/>
<TextField
required={true}
id="confirmPassword"
label="Confirm Password"
size="small"
Expand Down
5 changes: 5 additions & 0 deletions asreview/webapp/src/Components/SignUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ const SignUpForm = (props) => {
<Typography variant="h5">Create your profile</Typography>
<Stack spacing={3} component="form" noValidate>
<TextField
required={true}
id="email"
name="email"
label="Email"
Expand All @@ -164,6 +165,7 @@ const SignUpForm = (props) => {
<FormControl>
<Stack direction="row" spacing={2}>
<TextField
required={true}
id="password"
label="Password"
size="small"
Expand All @@ -177,6 +179,7 @@ const SignUpForm = (props) => {
}}
/>
<TextField
required={true}
id="confirmPassword"
label="Confirm Password"
size="small"
Expand Down Expand Up @@ -242,6 +245,7 @@ const SignUpForm = (props) => {
{isError && <InlineErrorHandler message={error.message} />}
<Divider />
<TextField
required={true}
id="name"
name="name"
label="Full name"
Expand All @@ -256,6 +260,7 @@ const SignUpForm = (props) => {
<FHT error={true}>{formik.errors.name}</FHT>
) : null}
<TextField
required={true}
id="affiliation"
label="Affiliation"
size="small"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const ProfilePage = (props) => {
<Stack direction="column" spacing={2}>
<Typography variant="h6">Change email & password</Typography>
<TextField
required={true}
id="email"
label="Email"
size="small"
Expand Down Expand Up @@ -304,6 +305,7 @@ const ProfilePage = (props) => {
<Typography variant="h6">User data</Typography>
)}
<TextField
required={true}
id="name"
label="Full name"
size="small"
Expand All @@ -319,6 +321,7 @@ const ProfilePage = (props) => {
<FHT error={true}>{formik.errors.name}</FHT>
) : null}
<TextField
required={true}
id="affiliation"
label="Affiliation"
size="small"
Expand Down

0 comments on commit a9845ef

Please sign in to comment.