diff --git a/app/soapbox/components/status-action-button.tsx b/app/soapbox/components/status-action-button.tsx index 6bbd86fa8..0e837168d 100644 --- a/app/soapbox/components/status-action-button.tsx +++ b/app/soapbox/components/status-action-button.tsx @@ -1,7 +1,7 @@ import classNames from 'classnames'; import React from 'react'; -import { Text, Icon } from 'soapbox/components/ui'; +import { Text, Icon, Emoji } from 'soapbox/components/ui'; import { shortNumberFormat } from 'soapbox/utils/numbers'; const COLORS = { @@ -15,7 +15,7 @@ interface IStatusActionCounter { count: number, } -/** Action button numerical counter, eg "5" likes */ +/** Action button numerical counter, eg "5" likes. */ const StatusActionCounter: React.FC = ({ count = 0 }): JSX.Element => { return ( @@ -31,10 +31,11 @@ interface IStatusActionButton extends React.ButtonHTMLAttributes): JSX.Element => { - const { icon, className, iconClassName, active, color, filled = false, count = 0, ...filteredProps } = props; +const StatusActionButton = React.forwardRef((props, ref): JSX.Element => { + const { icon, className, iconClassName, active, color, filled = false, count = 0, emoji, ...filteredProps } = props; return ( + ) : ( + + )} ) : (