mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-04 20:14:56 +00:00
Update LoginPage.tsx
This commit is contained in:
@@ -33,11 +33,16 @@ const LoginPage: React.FC = () => {
|
|||||||
} finally {
|
} finally {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleFormOnKeyPress = (e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||||
|
if (e.key === "Enter") {
|
||||||
|
onFormSubmit();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return <div className="centeredForm">
|
|
||||||
|
return <div className="centeredForm" onKeyPress={handleFormOnKeyPress}>
|
||||||
{isLoading && <LoadingOverlay/>}
|
{isLoading && <LoadingOverlay/>}
|
||||||
<div className="form-title left-text">Login</div>
|
<div className="form-title left-text">Login</div>
|
||||||
<div className="form-input">
|
<div className="form-input">
|
||||||
|
Reference in New Issue
Block a user