From 6db1e5d4ee4721b5936ade49947dff78e210caa6 Mon Sep 17 00:00:00 2001 From: WBT Date: Sun, 22 Oct 2023 02:19:25 -0400 Subject: [PATCH] Pass through showOfferedStatus --- packages/nextjs/components/example-ui/TierList.tsx | 9 +++++++-- packages/nextjs/components/example-ui/TierListing.tsx | 4 ++-- packages/nextjs/pages/merchant.tsx | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/nextjs/components/example-ui/TierList.tsx b/packages/nextjs/components/example-ui/TierList.tsx index 577df2b..059a54d 100644 --- a/packages/nextjs/components/example-ui/TierList.tsx +++ b/packages/nextjs/components/example-ui/TierList.tsx @@ -1,7 +1,7 @@ import { TierCard } from "./TierCard"; import { TierSetup } from "./TierSetup"; -export const TierList = (props: { merchant?: string; tiersLength?: bigint }) => { +export const TierList = (props: { merchant?: string; tiersLength?: bigint; showOfferedStatus: boolean }) => { const tiersLength = props.tiersLength; const merchant = props.merchant; if (typeof tiersLength == "undefined" || typeof merchant == "undefined") { @@ -16,7 +16,12 @@ export const TierList = (props: { merchant?: string; tiersLength?: bigint }) =>
    {indicies.map(index => ( - + ))}
diff --git a/packages/nextjs/components/example-ui/TierListing.tsx b/packages/nextjs/components/example-ui/TierListing.tsx index b5c4155..9f7fb14 100644 --- a/packages/nextjs/components/example-ui/TierListing.tsx +++ b/packages/nextjs/components/example-ui/TierListing.tsx @@ -7,7 +7,7 @@ import { useScaffoldEventSubscriber, } from "~~/hooks/scaffold-eth"; -export const TierListing = () => { +export const TierListing = (props: { showOfferedStatus: boolean }) => { const { address } = useAccount(); const { data: tiersLength, isLoading: isTierCountLoading } = useScaffoldContractRead({ @@ -60,7 +60,7 @@ export const TierListing = () => {

{tierCountText}

- +
); }; diff --git a/packages/nextjs/pages/merchant.tsx b/packages/nextjs/pages/merchant.tsx index fb6ae50..c565312 100644 --- a/packages/nextjs/pages/merchant.tsx +++ b/packages/nextjs/pages/merchant.tsx @@ -10,7 +10,7 @@ const MerchantSetup: NextPage = () => { description="Allows the maker of an API to set up offerings to sell access for cryptocurrency payments." />
- +
);