Skip to content

Commit fb6ce54

Browse files
authored
Removed reference to non-existant prop
Unless I'm mistaken, TextInput does not have a prop called error
1 parent e4150e8 commit fb6ce54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/10/en/part10b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ Validate the sign-in form so that both username and password fields are required
846846
847847
The current implementation of the <em>TextInput</em> component should display an error message if a touched field has an error. Emphasize this error message by giving it a red color.
848848
849-
On top of the red error message, give an invalid field a visual indication of an error by giving it a red border color. Remember that if a field has an error, the <em>TextInput</em> component sets the <em>TextInput</em> component's <em>error</em> prop as <em>true</em>. You can use the value of the <em>error</em> prop to attach conditional styles to the <em>TextInput</em> component.
849+
On top of the red error message, give an invalid field a visual indication of an error by giving it a red border color.
850850
851851
Here's what the sign-in form should roughly look like with an invalid field:
852852

0 commit comments

Comments
 (0)