Merge branch 'jsr' into ditto-auth

This commit is contained in:
Alex Gleason
2024-03-06 15:52:49 -06:00
5 changed files with 19 additions and 43 deletions

View File

@ -67,6 +67,7 @@ const PollOptionText: React.FC<IPollOptionText> = ({ poll, option, index, active
<Text
theme='inherit'
weight='medium'
align='center'
dangerouslySetInnerHTML={{ __html: option.title_emojified }}
/>
</div>

View File

@ -1,22 +1,14 @@
import { HotKeys as _HotKeys, type HotKeysProps } from '@mkljczk/react-hotkeys';
import React from 'react';
import { HotKeys as _HotKeys } from 'react-hotkeys';
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>
// );
const HotKeys = React.forwardRef<any, HotKeysProps>(({ children, ...rest }, ref) => (
<_HotKeys {...rest} ref={ref}>
{children}
</_HotKeys>
));
return <>{children}</>;
});
export { HotKeys, type IHotKeys };
export { HotKeys, type HotKeysProps as IHotKeys };