- {isAuthenticated() ? (
-
- ) : (
-
-
- Login
-
- setUsername(e.target.value)}
- onKeyDown={(e) => {
- if (e.key === 'Enter') {
- loginUser();
- }
- }}
- />
- setPassword(e.target.value)}
- onKeyDown={(e) => {
- if (e.key === 'Enter') {
- loginUser();
- }
- }}
- />
-
- {error && (
- setError('')} message={`Error: ${error}`} />
- )}
-
- )}
-
-
- Don't have an account? Signup
-
-
-