+
+
+ ) =>
+ setPass(e.target.value)
+ }
+ onKeyDown={(e: React.KeyboardEvent) => {
+ if (e.key === 'Enter') {
+ login();
+ }
+ }}
+ />
+
+
+
{error && (
{error}
)}
-
) =>
- setPass(e.target.value)
- }
- onKeyPress={(e: React.KeyboardEvent) => {
- if (e.key === 'Enter') {
- login();
- }
- }}
- />
-
-
+