fix: changing buy now to add to bag (#5393)

This commit is contained in:
Jack Short 2022-11-23 17:19:22 -05:00 committed by GitHub
parent 588567b900
commit 9dba68b34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

@ -66,7 +66,7 @@ const formatListingStatus = (status: OrderStatus): string => {
case OrderStatus.EXPIRED:
return 'Expired'
case OrderStatus.VALID:
return 'Buy Now'
return 'Add to Bag'
}
}
@ -125,7 +125,7 @@ export const BuyCell = ({
disabled={event.orderStatus !== OrderStatus.VALID}
>
{event.orderStatus === OrderStatus.VALID ? (
<>{`${itemsInBag.length === 0 ? 'Buy Now' : isSelected ? 'Remove' : 'Add to bag'}`}</>
<>{`${isSelected ? 'Remove' : 'Add to bag'}`}</>
) : (
<>{`${formatListingStatus(event.orderStatus)}`}</>
)}

@ -383,7 +383,7 @@ export const AssetPriceDetails = ({ asset, collection }: AssetPriceDetailsProps)
}}
>
<SubHeader color="white" lineHeight="20px">
<span>{assetInBag ? 'Remove' : 'Buy Now'}</span>
<span>{assetInBag ? 'Remove' : 'Add to Bag'}</span>
</SubHeader>
</BuyNowButton>
</BuyNowButtonContainer>