Groups: add key to group links
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
7d48c40b89
commit
0e730cf762
2 changed files with 4 additions and 4 deletions
|
@ -70,13 +70,13 @@ const Groups: React.FC = () => {
|
||||||
scrollKey='groups'
|
scrollKey='groups'
|
||||||
emptyMessage={emptyMessage}
|
emptyMessage={emptyMessage}
|
||||||
itemClassName='py-3 last:pb-0'
|
itemClassName='py-3 last:pb-0'
|
||||||
isLoading
|
isLoading={isLoading}
|
||||||
showLoading
|
showLoading={isLoading && !groups.count()}
|
||||||
placeholderComponent={PlaceholderGroupCard}
|
placeholderComponent={PlaceholderGroupCard}
|
||||||
placeholderCount={3}
|
placeholderCount={3}
|
||||||
>
|
>
|
||||||
{groups.map((group) => (
|
{groups.map((group) => (
|
||||||
<Link to={`/groups/${group.id}`}>
|
<Link key={group.id} to={`/groups/${group.id}`}>
|
||||||
<GroupCard group={group as GroupEntity} />
|
<GroupCard group={group as GroupEntity} />
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -76,7 +76,7 @@ const LinkFooter: React.FC = (): JSX.Element => {
|
||||||
defaultMessage='{code_name} is open source software. You can contribute or report issues at {code_link} (v{code_version}).'
|
defaultMessage='{code_name} is open source software. You can contribute or report issues at {code_link} (v{code_version}).'
|
||||||
values={{
|
values={{
|
||||||
code_name: sourceCode.displayName,
|
code_name: sourceCode.displayName,
|
||||||
code_link: <Text theme='subtle'><a className='underline' href={sourceCode.url} rel='noopener' target='_blank'>{sourceCode.repository}</a></Text>,
|
code_link: <Text theme='subtle' tag='span'><a className='underline' href={sourceCode.url} rel='noopener' target='_blank'>{sourceCode.repository}</a></Text>,
|
||||||
code_version: sourceCode.version,
|
code_version: sourceCode.version,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue