Skip to content

Commit

Permalink
Resolve unique key error
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Oct 13, 2023
1 parent e34d67c commit 26f28f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fabric/src/components/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ export function Pagination({ pagination }: { pagination?: PaginationState }) {
</Text>
)}
{pages.map((n) => (
<StyledButton onClick={() => goToPage(n)} $active={page === n} aria-label={`Go to page ${n}`}>
<StyledButton
key={`pagr-nr-${n}`}
onClick={() => goToPage(n)}
$active={page === n}
aria-label={`Go to page ${n}`}
>
<Text variant="interactive1" color="inherit">
{n}
</Text>
Expand Down

0 comments on commit 26f28f1

Please sign in to comment.