Skip to content
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

fix(earn): ripple on android exceeds border #5395

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 23 additions & 19 deletions src/earn/EarnCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,39 @@ import { Spacing } from 'src/styles/styles'
export default function EarnCta() {
const { t } = useTranslation()
return (
<Touchable
borderRadius={8}
style={styles.touchable}
onPress={() => {
ValoraAnalytics.track(EarnEvents.earn_cta_press)
}}
testID="EarnCta"
>
<>
<Text style={styles.title}>{t('earnFlow.cta.title')}</Text>
<View style={styles.row}>
<EarnAave />
<View style={styles.subtitleContainer}>
<Text style={styles.subtitle}>{t('earnFlow.cta.subtitle')}</Text>
<Text style={styles.description}>{t('earnFlow.cta.description')}</Text>
<View style={styles.container}>
<Touchable
borderRadius={8}
style={styles.touchable}
onPress={() => {
ValoraAnalytics.track(EarnEvents.earn_cta_press)
}}
testID="EarnCta"
>
<>
<Text style={styles.title}>{t('earnFlow.cta.title')}</Text>
<View style={styles.row}>
<EarnAave />
<View style={styles.subtitleContainer}>
<Text style={styles.subtitle}>{t('earnFlow.cta.subtitle')}</Text>
<Text style={styles.description}>{t('earnFlow.cta.description')}</Text>
</View>
</View>
</View>
</>
</Touchable>
</>
</Touchable>
</View>
)
}

const styles = StyleSheet.create({
container: {
marginBottom: Spacing.Thick24,
},
touchable: {
padding: Spacing.Regular16,
borderColor: Colors.gray2,
borderWidth: 1,
borderRadius: 8,
marginBottom: Spacing.Thick24,
},
title: {
...typeScale.labelSemiBoldMedium,
Expand Down
Loading