From 87e4c5040bbbc0bd57715b66491ba5fe9ccb6d28 Mon Sep 17 00:00:00 2001 From: Nishan Date: Thu, 7 Dec 2023 13:46:09 -0600 Subject: [PATCH] buy button --- .../creator-token/creator-token-users.tsx | 14 ++++++++++++++ .../components/creator-token/top-creator-token.tsx | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/app/components/creator-token/creator-token-users.tsx b/packages/app/components/creator-token/creator-token-users.tsx index f57349017..f5035a03f 100644 --- a/packages/app/components/creator-token/creator-token-users.tsx +++ b/packages/app/components/creator-token/creator-token-users.tsx @@ -141,10 +141,12 @@ export const TopCreatorTokenItem = ({ index, tw, item, + showBuyButton, ...rest }: ViewProps & { index?: number; item: TopCreatorTokenUser; + showBuyButton?: boolean; }) => { const router = useRouter(); const isDark = useIsDarkMode(); @@ -216,6 +218,18 @@ export const TopCreatorTokenItem = ({ /> + {showBuyButton ? ( + Buy} + username={token.owner_profile?.username} + /> + ) : null} diff --git a/packages/app/components/creator-token/top-creator-token.tsx b/packages/app/components/creator-token/top-creator-token.tsx index 3261420d1..ba1b66153 100644 --- a/packages/app/components/creator-token/top-creator-token.tsx +++ b/packages/app/components/creator-token/top-creator-token.tsx @@ -67,7 +67,7 @@ export const TopCreatorTokens = ({ item, index, }: ListRenderItemInfo) => { - return ; + return ; }, [] );