Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 5a13f05

Browse files
committed
Purged warnings
1 parent 560e3fa commit 5a13f05

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

webapp_frontend/src/components/pages/Registration.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function Registration(): ReactElement {
2222
const handleSubmit = (event: FormEvent) => {
2323
event.preventDefault();
2424

25+
setErrorMessage("test");
2526
}
2627

2728
const handlePasswordChange = (event: ChangeEvent<HTMLInputElement>) => {
@@ -61,22 +62,22 @@ export default function Registration(): ReactElement {
6162
value={password}
6263
onChange={(event: ChangeEvent<HTMLInputElement>) => handlePasswordChange(event)}/>
6364
<div>
64-
<img alt={"status image password length"} src={passwordInformationLength ? check_svg : info_svg}/>
65+
<img alt={"status icon password length"} src={passwordInformationLength ? check_svg : info_svg}/>
6566
<span className={"sr-only"}>{passwordInformationLength ? "Done: " : "Missing: "}</span>
6667
<span className={passwordInformationLength ? "text-success" : "text-muted"}>Passwords must be at least 8 characters.</span>
6768
</div>
6869
<div>
69-
<img alt={"status image password contains uppercase character"} src={passwordInformationUppercase ? check_svg : info_svg}/>
70+
<img alt={"status icon password contains uppercase character"} src={passwordInformationUppercase ? check_svg : info_svg}/>
7071
<span className={"sr-only"}>{passwordInformationUppercase ? "Done: " : "Missing: "}</span>
7172
<span className={passwordInformationUppercase ? "text-success" : "text-muted"}>Passwords must be at least contain 1 uppercase character.</span>
7273
</div>
7374
<div>
74-
<img alt={"status image password contains lowercase character"} src={passwordInformationLowercase ? check_svg : info_svg}/>
75+
<img alt={"status icon password contains lowercase character"} src={passwordInformationLowercase ? check_svg : info_svg}/>
7576
<span className={"sr-only"}>{passwordInformationLowercase ? "Done: " : "Missing: "}</span>
7677
<span className={passwordInformationLowercase ? "text-success" : "text-muted"}>Passwords must be at least contain 1 lowercase character.</span>
7778
</div>
7879
<div>
79-
<img alt={"status image password contains number"} src={passwordInformationNumber ? check_svg : info_svg}/>
80+
<img alt={"status icon password contains number"} src={passwordInformationNumber ? check_svg : info_svg}/>
8081
<span className={"sr-only"}>{passwordInformationNumber ? "Done: " : "Missing: "}</span>
8182
<span className={passwordInformationNumber ? "text-success" : "text-muted"}>Passwords must be at least contain 1 number.</span>
8283
</div>
@@ -87,7 +88,7 @@ export default function Registration(): ReactElement {
8788
value={passwordConfirmation}
8889
onChange={(event: ChangeEvent<HTMLInputElement>) => handlePasswordConfirmationChange(event)}/>
8990
<div>
90-
<img alt={"status image passwords match"} src={!passwordConfirmation ? info_svg : passwordsMatch ? check_svg : error_svg}/>
91+
<img alt={"status icon passwords match"} src={!passwordConfirmation ? info_svg : passwordsMatch ? check_svg : error_svg}/>
9192
<span className={"sr-only"}>{passwordsMatch ? "Done: " : "Missing: "}</span>
9293
<span className={!passwordConfirmation ? "text-muted" : passwordsMatch ? "text-success" : "text-danger"}>Passwords must match.</span>
9394
</div>

0 commit comments

Comments
 (0)