Skip to content

Commit

Permalink
Merge pull request #35 from Asante-ntiro/checkedin-counter
Browse files Browse the repository at this point in the history
added checked-in builders counter
  • Loading branch information
phipsae authored Dec 12, 2024
2 parents 49dc849 + 6fe1932 commit 7e8d369
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import Link from "next/link";
import type { NextPage } from "next";
import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline";
import BuildersGrid from "~~/components/batch/BuildersGrid";
import { useScaffoldReadContract } from "~~/hooks/scaffold-eth";

const Home: NextPage = () => {
const { data: checkedInCounter } = useScaffoldReadContract({
contractName: "BatchRegistry",
functionName: "checkedInCounter",
watch: true,
});
return (
<>
<div className="flex items-center flex-col flex-grow pt-10">
Expand All @@ -17,7 +23,7 @@ const Home: NextPage = () => {
<p className="text-center text-lg">Get started by taking a look at your batch GitHub repository.</p>
<p className="text-lg flex gap-2 justify-center">
<span className="font-bold">Checked in builders count:</span>
<span>To Be Implemented</span>
<span className="text-primary bg-primary-content px-1 rounded-md">{checkedInCounter?.toString()}</span>
</p>
</div>

Expand Down

0 comments on commit 7e8d369

Please sign in to comment.