kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Temporarily disable hotkeys
rodzic
76e8e2e999
commit
e83351f376
|
@ -6,13 +6,17 @@ type IHotKeys = React.ComponentProps<typeof _HotKeys>;
|
|||
/**
|
||||
* Wrapper component around `react-hotkeys`.
|
||||
* `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) => {
|
||||
return (
|
||||
<_HotKeys {...rest} ref={ref}>
|
||||
{children}
|
||||
</_HotKeys>
|
||||
);
|
||||
// return (
|
||||
// <_HotKeys {...rest} ref={ref}>
|
||||
// {children}
|
||||
// </_HotKeys>
|
||||
// );
|
||||
|
||||
return <>{children}</>;
|
||||
});
|
||||
|
||||
export { HotKeys, type IHotKeys };
|
Ładowanie…
Reference in New Issue