From 3bc413d5d5cb3835cd86b70414e950222b5b0ed3 Mon Sep 17 00:00:00 2001 From: RafaelCaso <94573618+RafaelCaso@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:48:10 -0400 Subject: [PATCH] Fix #5 - checked in counter (#25) * replace img with nextjs Image component * Hotfix: fix linting issue * add CheckInCounter component to read contract variable checkedInCounter * fix: add dependencies to useEffect to avoid infinite chain of updates --- packages/nextjs/app/page.tsx | 4 +-- .../nextjs/components/CheckedInCounter.tsx | 34 +++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 packages/nextjs/components/CheckedInCounter.tsx diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index 96a9436..347c77c 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -1,6 +1,7 @@ "use client"; import Link from "next/link"; +import CheckedInCounter from "../components/CheckedInCounter"; import type { NextPage } from "next"; import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; @@ -15,8 +16,7 @@ const Home: NextPage = () => {
Get started by taking a look at your batch GitHub repository.
- Checked in builders count:
- To Be Implemented
+
{feedback}
} + > + ); +}; + +export default CheckInCount;