Add missing list keys
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d6ee14cb99
commit
47b01ca078
4 changed files with 8 additions and 3 deletions
|
@ -240,7 +240,7 @@ const Status: React.FC<IStatus> = (props) => {
|
|||
const accounts = status.accounts || ImmutableList([status.account]);
|
||||
|
||||
const renderedAccounts = accounts.slice(0, 2).map(account => !!account && (
|
||||
<Link to={`/@${account.acct}`} className='hover:underline'>
|
||||
<Link key={account.acct} to={`/@${account.acct}`} className='hover:underline'>
|
||||
<bdi className='truncate'>
|
||||
<strong
|
||||
className='text-gray-800 dark:text-gray-200'
|
||||
|
|
|
@ -50,7 +50,10 @@ const ReplyMentions: React.FC<IReplyMentions> = ({ composeId }) => {
|
|||
const accounts = to.slice(0, 2).map((acct: string) => {
|
||||
const username = acct.split('@')[0];
|
||||
return (
|
||||
<span className='inline-block text-primary-600 no-underline [direction:ltr] hover:text-primary-700 hover:underline dark:text-accent-blue dark:hover:text-accent-blue'>
|
||||
<span
|
||||
key={acct}
|
||||
className='inline-block text-primary-600 no-underline [direction:ltr] hover:text-primary-700 hover:underline dark:text-accent-blue dark:hover:text-accent-blue'
|
||||
>
|
||||
@{username}
|
||||
</span>
|
||||
);
|
||||
|
|
|
@ -30,7 +30,7 @@ const notificationForScreenReader = (intl: IntlShape, message: string, timestamp
|
|||
};
|
||||
|
||||
const buildLink = (account: AccountEntity): JSX.Element => (
|
||||
<bdi>
|
||||
<bdi key={account.acct}>
|
||||
<Link
|
||||
className='font-bold text-gray-800 hover:underline dark:text-gray-200'
|
||||
title={account.acct}
|
||||
|
@ -136,6 +136,7 @@ const buildMessage = (
|
|||
if (accounts.size > 2) {
|
||||
renderedAccounts.push(
|
||||
<FormattedMessage
|
||||
key='more'
|
||||
id='notification.more'
|
||||
defaultMessage='{count, plural, one {# other} other {# others}}'
|
||||
values={{ count: accounts.size - renderedAccounts.length }}
|
||||
|
|
|
@ -40,6 +40,7 @@ const SelectBookmarkFolderModal: React.FC<ISelectBookmarkFolderModal> = ({ statu
|
|||
|
||||
const items = [
|
||||
<RadioItem
|
||||
key='all'
|
||||
label={
|
||||
<HStack alignItems='center' space={2}>
|
||||
<Icon src={require('@tabler/icons/outline/bookmarks.svg')} size={20} />
|
||||
|
|
Loading…
Reference in a new issue