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

Commit

Permalink
Refactor message input component to use LeanView
Browse files Browse the repository at this point in the history
and PlatformBuyButton
  • Loading branch information
hirbod committed Nov 22, 2023
1 parent fd9a936 commit 4a1b47c
Showing 1 changed file with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,22 +217,23 @@ export const MessageInput = memo(
!hasUnlockedMessages
) {
return (
<LeanView
tw="flex-row items-center justify-start bg-black px-2 py-2"
style={{
marginBottom: Math.max(bottom || 0, 16),
}}
>
<PlatformBuyButton
username={channelOwnerProfile?.username}
text={
<LeanText tw="text-center text-base font-semibold">
Buy - ${priceToBuyNext.data?.displayPrice}
</LeanText>
}
side="top"
tw="web:min-w-[200px] mr-4 min-w-[180px]"
/>
<LeanView tw="flex-row items-center justify-start bg-black px-2 py-2">
<LeanView
style={{
paddingBottom: bottom || 0,
}}
>
<PlatformBuyButton
username={channelOwnerProfile?.username}
text={
<LeanText tw="text-center text-base font-semibold">
Buy - ${priceToBuyNext.data?.displayPrice}
</LeanText>
}
side="top"
tw="web:min-w-[200px] mr-4 mt-auto min-w-[180px]"
/>
</LeanView>
</LeanView>
);
}
Expand Down

0 comments on commit 4a1b47c

Please sign in to comment.