Skip to content

Commit

Permalink
checked in builders counter
Browse files Browse the repository at this point in the history
  • Loading branch information
melanke committed Nov 18, 2024
1 parent bf18317 commit 439398a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
import Link from "next/link";
import type { NextPage } from "next";
import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline";
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 @@ -16,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>{checkedInCounter?.toString()}</span>
</p>
</div>

Expand Down

0 comments on commit 439398a

Please sign in to comment.