Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
buy button
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway committed Dec 7, 2023
1 parent 946159f commit 87e4c50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions packages/app/components/creator-token/creator-token-users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -216,6 +218,18 @@ export const TopCreatorTokenItem = ({
/>
</View>
</View>
{showBuyButton ? (
<PlatformBuyButton
style={{
backgroundColor: "#08F6CC",
height: 16,
marginTop: 0,
width: 48,
}}
text={<Text tw="text-xs font-semibold">Buy</Text>}
username={token.owner_profile?.username}
/>
) : null}
</View>
</View>
</PressableHover>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const TopCreatorTokens = ({
item,
index,
}: ListRenderItemInfo<TopCreatorTokenUser & { loading?: boolean }>) => {
return <TopCreatorTokenItem item={item} index={index} />;
return <TopCreatorTokenItem item={item} index={index} showBuyButton />;
},
[]
);
Expand Down

0 comments on commit 87e4c50

Please sign in to comment.