kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
StatusReplyMentions: linter fixes
rodzic
f1023b3f80
commit
2d3d834a83
|
@ -3,8 +3,8 @@ import { FormattedList, FormattedMessage } from 'react-intl';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
|
|
||||||
import HoverStatusWrapper from 'soapbox/components/hover-status-wrapper';
|
import HoverStatusWrapper from 'soapbox/components/hover-status-wrapper';
|
||||||
|
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
import type { Account, Status } from 'soapbox/types/entities';
|
import type { Account, Status } from 'soapbox/types/entities';
|
||||||
|
@ -68,15 +68,17 @@ const StatusReplyMentions: React.FC<IStatusReplyMentions> = ({ status }) => {
|
||||||
defaultMessage='<hover>Replying to</hover> {accounts}'
|
defaultMessage='<hover>Replying to</hover> {accounts}'
|
||||||
values={{
|
values={{
|
||||||
accounts: <FormattedList type='conjunction' value={accounts} />,
|
accounts: <FormattedList type='conjunction' value={accounts} />,
|
||||||
hover: (children: any) => <HoverStatusWrapper statusId={status.in_reply_to_id} inline>
|
hover: (children: React.ReactNode) => (
|
||||||
<span
|
<HoverStatusWrapper statusId={status.in_reply_to_id} inline>
|
||||||
key='hoverstatus'
|
<span
|
||||||
className='hover:underline cursor-pointer'
|
key='hoverstatus'
|
||||||
role='presentation'
|
className='hover:underline cursor-pointer'
|
||||||
>
|
role='presentation'
|
||||||
{children}
|
>
|
||||||
</span>
|
{children}
|
||||||
</HoverStatusWrapper>
|
</span>
|
||||||
|
</HoverStatusWrapper>
|
||||||
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Ładowanie…
Reference in New Issue