diff --git a/src/components/status.jsx b/src/components/status.jsx index 3669f229..7c251c9f 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -15,7 +15,7 @@ import { shallowEqual } from 'fast-equals'; import prettify from 'html-prettify'; import pThrottle from 'p-throttle'; import { Fragment } from 'preact'; -import { memo } from 'preact/compat'; +import { forwardRef, memo } from 'preact/compat'; import { useCallback, useContext, @@ -2403,42 +2403,42 @@ function Status({ disabled={!canBoost} /> */} - - - {reblogged ? t`Unboost` : t`Boost`} - - } - menuExtras={ - { - showCompose({ - draftStatus: { - status: `\n${url}`, - }, - }); - }} - > - - - Quote - - - } - menuFooter={ - mediaNoDesc && - !reblogged && ( - - ) - } - > -
+
+ + + {reblogged ? t`Unboost` : t`Boost`} + + } + menuExtras={ + { + showCompose({ + draftStatus: { + status: `\n${url}`, + }, + }); + }} + > + + + Quote + + + } + menuFooter={ + mediaNoDesc && + !reblogged && ( + + ) + } + > -
- + +
{ + let { + checked, + count, + class: className, + title, + alt, + size, + icon, + iconSize = 'l', + onClick, + ...otherProps + } = props; if (typeof title === 'string') { title = [title, title]; } @@ -3460,6 +3461,7 @@ function StatusButton({ return ( ); -} +}); function nicePostURL(url) { if (!url) return;