aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/newlightbox/RecommendationList
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-12 21:38:22 -0400
committerbobzel <zzzman@gmail.com>2024-08-12 21:38:22 -0400
commitb84bdc5a629dfa6310b24dd5eedee2843558b73a (patch)
treeb22a0630991f39ed166de0599f9b14d3e9f13b2e /src/client/views/newlightbox/RecommendationList
parent762ac2bf354e4cc2c4b15f42502da939f5061646 (diff)
more any -> type fixes
Diffstat (limited to 'src/client/views/newlightbox/RecommendationList')
-rw-r--r--src/client/views/newlightbox/RecommendationList/RecommendationList.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/views/newlightbox/RecommendationList/RecommendationList.tsx b/src/client/views/newlightbox/RecommendationList/RecommendationList.tsx
index dc3339cd3..27413bac3 100644
--- a/src/client/views/newlightbox/RecommendationList/RecommendationList.tsx
+++ b/src/client/views/newlightbox/RecommendationList/RecommendationList.tsx
@@ -1,6 +1,4 @@
/* eslint-disable react/jsx-props-no-spreading */
-/* eslint-disable jsx-a11y/no-static-element-interactions */
-/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable guard-for-in */
import { IconButton, Size, Type } from 'browndash-components';
import * as React from 'react';
@@ -168,7 +166,8 @@ export function RecommendationList() {
<div className="keywords">
{keywordsLoc &&
keywordsLoc.map((word, ind) => (
- <div className="keyword">
+ <div className="keyword" key={word}>
+ {' '}
{word}
<IconButton
type={Type.PRIM}
@@ -207,7 +206,7 @@ export function RecommendationList() {
</div>
)}
</div>
- <div className="recommendations">{recs && recs.map((rec: IRecommendation) => <Recommendation {...rec} />)}</div>
+ <div className="recommendations">{recs && recs.map(rec => <Recommendation key={rec.data} {...rec} />)}</div>
</div>
);
}