fix: aria-label warnings for edit profile form

This commit is contained in:
Simon Emanuelsson
2024-04-16 12:59:58 +02:00
parent 21a839488a
commit 4ee4570373
11 changed files with 20 additions and 19 deletions

View File

@@ -9,6 +9,7 @@ import styles from "./input.module.css"
import type { InputProps } from "./input"
export default function Input({
"aria-label": ariaLabel,
control,
disabled,
name,
@@ -24,6 +25,7 @@ export default function Input({
return (
<TextField
aria-label={ariaLabel}
defaultValue={field.value}
isDisabled={disabled ?? field.disabled}
isInvalid={fieldState.invalid}