aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/newlightbox/RecommendationList
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2024-08-27 16:44:12 -0400
committereleanor-park <eleanor_park@brown.edu>2024-08-27 16:44:12 -0400
commit39d2bba7bf4b0cc3759931691640083a48cce662 (patch)
tree8bf110760aa926237b6294aec545f48cfc92747d /src/client/views/newlightbox/RecommendationList
parent6f73686ec4dc3e01ae3eacc0150aa59eafea0325 (diff)
parentb8a04a0fedf8ef3612395764a0ecd01f6824ebd1 (diff)
Merge branch 'master' into eleanor-gptdraw
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>
);
}