Skip to content

Commit

Permalink
bugfix: add key in li
Browse files Browse the repository at this point in the history
  • Loading branch information
zizdlp committed Sep 13, 2024
1 parent 35a0737 commit 0eacd39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions zbook_frontend/src/components/charts/AreaUserChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default function AreaUserChart({
}).then((data) => {
setActiveUserCounts(data.counts);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const t = useTranslations("AdminOverView");
Expand Down
1 change: 1 addition & 0 deletions zbook_frontend/src/components/charts/AreaVisitorChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function AreaVisitorChart({
).reverse();
setDates(generatedDates);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const totalCount = counts.reduce((sum, count) => sum + count, 0);
Expand Down
15 changes: 7 additions & 8 deletions zbook_frontend/src/components/home/FooterForHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ export default async function FooterForHome() {

<div className="flex flex-col items-center border-t-[0.01rem] border-slate-400 dark:border-slate-700 py-10 sm:flex-row-reverse sm:justify-between">
<div className="flex gap-x-6">
{socialLinks.map(({ href, ariaLabel, icon }) => (
// <SocialLink
// key={href}
// href={href}
// ariaLabel={ariaLabel}
// Icon={icon}
// />
<Link className="group" aria-label={ariaLabel} href={href}>
{socialLinks.map(({ href, ariaLabel, icon }, index) => (
<Link
key={index}
className="group"
aria-label={ariaLabel}
href={href}
>
<IconItem
iconName={icon}
className="h-5 w-5 fill-slate-500 group-hover:fill-slate-700"
Expand Down

0 comments on commit 0eacd39

Please sign in to comment.