Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 134
[PAY-2352][PAY-2396] Fix transactions table state after withdrawal#7457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
f17a7f8efb54965d48eb7934019cf3e25e7a7f6ef4ad085aef43e0040cce8033fc0bd71c7ece77cfc81d8d5ea88File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -56,7 +56,8 @@ const messages = { | ||
| unlockAll: (price: string) => `Unlock All $${price}`, | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also just linting fixes | ||
| purchased: 'purchased', | ||
| followToDownload: 'Must follow artist to download.', | ||
| purchaseableIsOwner: (price: string) => `Fans can unlock & download these files for a one time purchase of $${price}` | ||
| purchaseableIsOwner: (price: string) => | ||
| `Fans can unlock & download these files for a one time purchase of $${price}` | ||
| } | ||
| type DownloadSectionProps = { | ||
| @@ -81,11 +82,13 @@ export const DownloadSection = ({ trackId }: DownloadSectionProps) => { | ||
| } = useDownloadableContentAccess({ trackId }) | ||
| const shouldHideDownload = | ||
| !track?.access.download && !shouldDisplayDownloadFollowGated | ||
| const formattedPrice = price ? USDC(price / 100).toLocaleString('en-us', { | ||
| roundingMode: 'floor', | ||
| minimumFractionDigits: 2, | ||
| maximumFractionDigits: 2 | ||
| }) : undefined | ||
| const formattedPrice = price | ||
| ? USDC(price / 100).toLocaleString('en-us', { | ||
| roundingMode: 'floor', | ||
| minimumFractionDigits: 2, | ||
| maximumFractionDigits: 2 | ||
| }) | ||
| : undefined | ||
| const [quality, setQuality] = useState(DownloadQuality.MP3) | ||
| const [expanded, setExpanded] = useState(false) | ||
| const [lockedContentModalVisibility, setLockedContentModalVisibility] = | ||
| @@ -191,16 +194,15 @@ export const DownloadSection = ({ trackId }: DownloadSectionProps) => { | ||
| </Text> | ||
| </Flex> | ||
| <Flex gap='l' alignItems='center'> | ||
| {shouldDisplayPremiumDownloadLocked && formattedPrice !== undefined ? ( | ||
| {shouldDisplayPremiumDownloadLocked && | ||
| formattedPrice !== undefined ? ( | ||
| <Button | ||
| variant='primary' | ||
| size='small' | ||
| color='lightGreen' | ||
| onClick={handlePurchaseClick} | ||
| > | ||
| {messages.unlockAll( | ||
| formattedPrice | ||
| )} | ||
| {messages.unlockAll(formattedPrice)} | ||
| </Button> | ||
| ) : null} | ||
| {shouldDisplayPremiumDownloadUnlocked ? ( | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is just linting fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, sorry probably me