-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
41cc4af
commit 5b4242f
Showing
17 changed files
with
429 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { CommonState } from 'store/commonStore' | ||
|
||
export const getStripeModalState = (state: CommonState) => state.ui.stripeModal | ||
|
||
export const getStripeClientSecret = (state: CommonState) => | ||
state.ui.stripeModal.stripeClientSecret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
packages/mobile/src/components/premium-track-purchase-drawer/PurchaseSuccess.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { View } from 'react-native' | ||
|
||
import IconVerified from 'app/assets/images/iconVerified.svg' | ||
import { Text } from 'app/components/core' | ||
import { flexRowCentered, makeStyles } from 'app/styles' | ||
import { spacing } from 'app/styles/spacing' | ||
import { useThemeColors } from 'app/utils/theme' | ||
|
||
import { TwitterButton } from '../twitter-button' | ||
|
||
const messages = { | ||
success: 'Your purchase was successful!' | ||
} | ||
|
||
const useStyles = makeStyles(({ spacing, typography, palette }) => ({ | ||
root: { | ||
paddingTop: spacing(2), | ||
gap: spacing(9), | ||
alignSelf: 'center' | ||
}, | ||
successContainer: { | ||
...flexRowCentered(), | ||
alignSelf: 'center', | ||
gap: spacing(2) | ||
} | ||
})) | ||
|
||
export const PurchaseSuccess = () => { | ||
const styles = useStyles() | ||
const { specialLightGreen1, staticWhite } = useThemeColors() | ||
|
||
return ( | ||
<View style={styles.root}> | ||
<View style={styles.successContainer}> | ||
<IconVerified | ||
height={spacing(4)} | ||
width={spacing(4)} | ||
fill={specialLightGreen1} | ||
fillSecondary={staticWhite} | ||
/> | ||
<Text weight='bold'>{messages.success}</Text> | ||
</View> | ||
<TwitterButton | ||
fullWidth | ||
size='large' | ||
type='static' | ||
shareText={messages.success} | ||
/> | ||
</View> | ||
) | ||
} |
Oops, something went wrong.