Skip to content

Commit

Permalink
add keys to lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jojortz committed Jan 12, 2024
1 parent c4a4e5d commit 00739a8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Section: React.FC<SectionProps> = ({
<Heading title={title} center={center} />
<div className="flex flex-col items-center gap-5">
{paragraphs.map((paragraph, index) => (
<div className="font-light text-neutral-500 mt-5 text-2xl">
<div key={index} className="font-light text-neutral-500 mt-5 text-2xl">
<p key={index}>{paragraph}</p>
</div>
))}
Expand Down
5 changes: 3 additions & 2 deletions app/components/navbar/NavMenuFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ const NavMenu: React.FC<NavMenuProps> = ({ menuItems, makeOnClick }) => {
<div className="flex flex-col align-center justify-center gap-4">
{item.links.map((link, i) => (
<div
onClick={makeOnClick(item.label, link, toggleOpen)}
className="w-full h-[20px] flex justify-center text-2xl cursor-pointer hover:text-cambio-red"
key={link + i}
onClick={makeOnClick(item.label, link, toggleOpen)}
className="w-full h-[20px] flex justify-center text-2xl cursor-pointer hover:text-cambio-red"
>
{link}
</div>
Expand Down
6 changes: 4 additions & 2 deletions app/solutions/compliance/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ const ComplianceSolutionsPage = () => {
gap-8
"
>
{Solutions.map((useCase) => (
<SolutionsCard title={useCase.title}
{Solutions.map((useCase, i) => (
<SolutionsCard
key={useCase.title + i}
title={useCase.title}
description={useCase.description}
image={useCase.image}
url={useCase.url} />
Expand Down
6 changes: 4 additions & 2 deletions app/solutions/finance/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ const FintechSolutionsPage = () => {
gap-8
"
>
{Solutions.map((useCase) => (
<SolutionsCard title={useCase.title}
{Solutions.map((useCase, i) => (
<SolutionsCard
key={useCase.title + i}
title={useCase.title}
description={useCase.description}
image={useCase.image}
url={useCase.url} />
Expand Down
6 changes: 4 additions & 2 deletions app/solutions/manufacturing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ const ManufacturingSolutionsPage = () => {
gap-8
"
>
{Solutions.map((useCase) => (
<SolutionsCard title={useCase.title}
{Solutions.map((useCase, i) => (
<SolutionsCard
key={useCase.title + i}
title={useCase.title}
description={useCase.description}
image={useCase.image}
url={useCase.url} />
Expand Down

0 comments on commit 00739a8

Please sign in to comment.