Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions app/animations/Celebrating_Fox.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/animations/Concealing_Fox.json

Large diffs are not rendered by default.

430 changes: 285 additions & 145 deletions app/components/Views/OnboardingSuccess/__snapshots__/index.test.js.snap

Large diffs are not rendered by default.

179 changes: 115 additions & 64 deletions app/components/Views/OnboardingSuccess/index.styles.ts
Original file line number Diff line number Diff line change
@@ -1,67 +1,118 @@
import { StyleSheet } from 'react-native';

const styles = StyleSheet.create({
root: {
flex: 1,
},
contentWrapper: {
flex: 1,
paddingTop: 24,
padding: 24,
},
buttonWrapper: {
paddingHorizontal: 24,
paddingBottom: 50,
},
emoji: {
textAlign: 'center',
fontSize: 65,
marginBottom: 16,
},
title: {
paddingTop: 20,
fontSize: 24,
fontWeight: '700',
textAlign: 'center',
},
description: {
fontSize: 14,
textAlign: 'left',
marginTop: 14,
lineHeight: 22,
fontWeight: '400',
},
descriptionBold: {
fontSize: 14,
textAlign: 'left',
fontWeight: '700',
},
descriptionWrapper: {
width: '90%',
},
button: {
marginBottom: 16,
},
backButton: {
padding: 10,
},
footer: {
minHeight: 50,
},
iconWrapper: {
marginRight: 6,
},
linkWrapper: {
flexDirection: 'row',
alignItems: 'center',
marginTop: 16,
},
footerText: {
fontSize: 12,
marginTop: 10,
lineHeight: 22,
fontWeight: '400',
},
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const createStyles = (colors: any) =>
StyleSheet.create({
root: {
flexGrow: 1,
paddingBottom: 32,
},
contentContainer: {
flexDirection: 'column',
flexGrow: 1,
justifyContent: 'space-between',
rowGap: 16,
},
contentWrapper: {
flex: 1,
paddingHorizontal: 16,
},
buttonWrapper: {
paddingHorizontal: 16,
marginTop: 'auto',
flex: 1,
justifyContent: 'flex-end',
height: '100%',
marginBottom: 16,
},
emoji: {
textAlign: 'center',
fontSize: 65,
marginBottom: 16,
},
title: {
paddingTop: 20,
fontSize: 24,
fontWeight: '700',
textAlign: 'left',
},
hintWrapper: {
flexDirection: 'column',
flexGrow: 1,
justifyContent: 'space-between',
rowGap: 16,
paddingHorizontal: 24,
marginBottom: 16,
},
hintContent: {
flexDirection: 'column',
gap: 16,
},
hintDescriptionWrapper: {
flexDirection: 'column',
rowGap: 20,
},
hintInput: {
borderRadius: 8,
padding: 16,
},
textTitle: {
marginBottom: 30,
},
walletReadyImage: {
marginHorizontal: 'auto',
alignSelf: 'center',
width: 200,
height: 200,
},
description: {
fontSize: 14,
textAlign: 'left',
marginTop: 14,
lineHeight: 22,
fontWeight: '400',
},
descriptionBold: {
fontSize: 14,
textAlign: 'left',
fontWeight: '700',
},
descriptionWrapper: {
width: '100%',
flexDirection: 'column',
rowGap: 16,
marginTop: 40,
},
footerWrapper: {
marginVertical: 24,
flexDirection: 'column',
rowGap: 16,
},
footer: {
backgroundColor: colors.background.muted,
paddingHorizontal: 16,
paddingVertical: 16,
borderRadius: 8,
},
row: {
flexDirection: 'row',
alignItems: 'center',
columnGap: 12,
},
linkWrapper: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
columnGap: 12,
},
headerLeft: {
marginLeft: 16,
},
hintTextWrapper: {
flexDirection: 'column',
rowGap: 0,
justifyContent: 'flex-start',
},
});

export default styles;
export default createStyles;
3 changes: 3 additions & 0 deletions app/components/Views/OnboardingSuccess/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jest.mock('@react-navigation/native', () => {
pop: jest.fn(),
}),
}),
useRoute: () => ({
params: { showPasswordHint: true },
}),
};
});

Expand Down
Loading
Loading