pl-fe: fix console warnings
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -58,9 +58,17 @@ const InstanceFavicon: React.FC<IInstanceFavicon> = ({ account, disabled }) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const className = 'size-4 flex-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2';
|
||||
|
||||
if (disabled) {
|
||||
return (
|
||||
<img src={account.favicon} alt='' title={account.domain} className={className} />
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<button
|
||||
className='size-4 flex-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2'
|
||||
className={className}
|
||||
onClick={handleClick}
|
||||
disabled={disabled}
|
||||
title={intl.formatMessage(messages.timeline, { domain: account.domain })}
|
||||
|
||||
@ -191,7 +191,7 @@ const buildMessage = (
|
||||
instance: instanceTitle,
|
||||
count: accounts.length,
|
||||
hasStatus: +hasStatus,
|
||||
isReblog: type === 'reblog' ? 1 : 0,
|
||||
isReblog: isReblog ? 1 : 0,
|
||||
});
|
||||
};
|
||||
|
||||
@ -471,6 +471,7 @@ const Notification: React.FC<INotification> = (props) => {
|
||||
intl.formatMessage(messages[displayedType], {
|
||||
name: accounts.length ? intl.formatList(accounts.map(account => account.acct), { type: 'conjunction' }) : '',
|
||||
targetName,
|
||||
isReblog: status?.reblog ? 1 : 0,
|
||||
}),
|
||||
notification.latest_page_notification_at!,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user