Skip to content

Commit

Permalink
resolved key warning on faq component
Browse files Browse the repository at this point in the history
  • Loading branch information
ykIsCoding committed Dec 7, 2024
1 parent 3c012f9 commit 8b7d717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/components/faq/Faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export const Faq = ({ heading, qnaList }: FaqProps) => {
justifyItems="flex-start"
templateColumns={{ base: "repeat(1, 1fr)", md: "repeat(2, 1fr)" }}
>
{qnaList.map((qna) => (
<GridItem>
{qnaList.map((qna,idx) => (
<GridItem key={idx}>
<Qna question={qna.question} answer={qna.answer} />
</GridItem>
))}
Expand Down

0 comments on commit 8b7d717

Please sign in to comment.