- added hotkeys;

This commit is contained in:
Vitalii Kiiko
2025-03-07 09:03:07 +01:00
parent a9a92baf18
commit 3dd2e23501
3 changed files with 16 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ import FormField from '../../components/FormField';
import LogoIcon from '../../icons/LogoIcon';
import { Button } from 'primereact/button';
import { Messages } from 'primereact/messages';
import hotkeys from 'hotkeys-js';
const APP_HUB_ID = process.env.REACT_APP_HUB_ID;
@@ -78,6 +79,12 @@ const LoginAdmin = () => {
}
}, [token]);
useEffect(() => {
hotkeys('command+shift+x,ctrl+shift+x', function(){
window.location.replace('/confidi')
});
}, []);
return (
<div className={classNames(['appPage', 'appPageLogin'])}>
<div className="appPageLogin__wrapper">