Temporarily disable hotkeys

This commit is contained in:
Alex Gleason 2023-09-14 13:04:14 -05:00
parent 76e8e2e999
commit e83351f376
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -6,13 +6,17 @@ type IHotKeys = React.ComponentProps<typeof _HotKeys>;
/** /**
* Wrapper component around `react-hotkeys`. * Wrapper component around `react-hotkeys`.
* `react-hotkeys` is a legacy component, so confining its import to one place is beneficial. * `react-hotkeys` is a legacy component, so confining its import to one place is beneficial.
*
* NOTE: Temporarily disabled due to incompatibility with Vite.
*/ */
const HotKeys = React.forwardRef<any, IHotKeys>(({ children, ...rest }, ref) => { const HotKeys = React.forwardRef<any, IHotKeys>(({ children, ...rest }, ref) => {
return ( // return (
<_HotKeys {...rest} ref={ref}> // <_HotKeys {...rest} ref={ref}>
{children} // {children}
</_HotKeys> // </_HotKeys>
); // );
return <>{children}</>;
}); });
export { HotKeys, type IHotKeys }; export { HotKeys, type IHotKeys };