mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add some iterator keys
This commit is contained in:
parent
707abe42a6
commit
4424f9d311
3 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ interface IProps {
|
|||
export const Tags = (props: IProps) => {
|
||||
return props.tags.length > 0
|
||||
? <div className="d-md-none">
|
||||
{props.tags.map((t: IListTagDto) => <Tag {...t}/>)}
|
||||
{props.tags.map((t: IListTagDto, i) => <Tag {...t} key={i}/>)}
|
||||
</div>
|
||||
: null;
|
||||
};
|
||||
|
|
@ -10,10 +10,10 @@ export const MaintainerAdditionalLists = (props: IProps) => {
|
|||
return <div className="col-9">
|
||||
{props.additionalLists.length > 0
|
||||
? <div>
|
||||
|
||||
<h4>More by {props.name}:</h4>
|
||||
<ul>
|
||||
{props.additionalLists.map((l: IMaintainerAdditionalListDto) => <li>{l.name}</li>)}
|
||||
{props.additionalLists.map(
|
||||
(l: IMaintainerAdditionalListDto, i) => <li key={i}>{l.name}</li>)}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ interface IProps {
|
|||
export const MaintainersInfoCard = (props: IProps) => {
|
||||
return props.maintainers.length > 0
|
||||
? <div className="w-100">
|
||||
{props.maintainers.map((m: IListMaintainerDto) => <MaintainerInfoCard {...m}/>)}
|
||||
{props.maintainers.map((m: IListMaintainerDto, i) => <MaintainerInfoCard {...m} key={i}/>)}
|
||||
</div>
|
||||
: null;
|
||||
};
|
||||
Loading…
Reference in a new issue