diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index 9158ef2..331cbb9 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -1,10 +1,10 @@ "use client"; -import React from "react"; import Link from "next/link"; import type { NextPage } from "next"; import { useAccount } from "wagmi"; import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; +import { Address } from "~~/components/scaffold-eth"; import { useScaffoldReadContract } from "~~/hooks/scaffold-eth"; interface Props { @@ -12,15 +12,13 @@ interface Props { className?: string; } -interface StarknetReact { +interface BatchUserStatus { connectedAddress: string; isAllowListed: boolean; isCheckedIn: boolean; - userContractAddress: string; isLoading: boolean; } -// Alert Components const Alert = ({ children, className = "" }: Props) => (
{children}
); @@ -31,7 +29,6 @@ const AlertTitle = ({ children }: Props) => ( const AlertDescription = ({ children }: Props) =>
{children}
; -// Card Components const Card = ({ children, className = "" }: Props) => (
{children} @@ -48,14 +45,7 @@ const CardTitle = ({ children }: Props) => ( const CardContent = ({ children, className = "" }: Props) =>
{children}
; -// Status Component -const StatusSection = ({ - connectedAddress, - isAllowListed, - isCheckedIn, - userContractAddress, - isLoading, -}: StarknetReact) => { +const StatusSection = ({ connectedAddress, isAllowListed, isCheckedIn, isLoading }: BatchUserStatus) => { if (isLoading) { return ( @@ -124,7 +114,7 @@ const StatusSection = ({

- Active with contract: {userContractAddress?.slice(0, 6)}...{userContractAddress?.slice(-4)} + Active with wallet address:

@@ -197,7 +187,6 @@ const Home: NextPage = () => { connectedAddress={connectedAddress as string} isAllowListed={isAllowListed as boolean} isCheckedIn={isCheckedIn as boolean} - userContractAddress={userContractAddress as string} isLoading={isLoading as boolean} />