Skip to content

Commit b31c9b9

Browse files
Add background
1 parent d4822df commit b31c9b9

File tree

3 files changed

+1100
-1
lines changed

3 files changed

+1100
-1
lines changed

apps/wallet-mobile/.storybook/storybook.requires.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/wallet-mobile/src/features/Banners/common/DelegateToYoroiDRepBanner/DelegateToYoroiDRepBanner.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Button} from '../../../../components/Button/Button'
77
import {DismissibleView} from '../../../../components/DismissableView'
88
import {Icon} from '../../../../components/Icon'
99
import {Text} from '../../../../components/Text'
10+
import {GovernanceBackground} from '../../illustrations/GovernanceBackground'
1011
import {useStrings} from '../strings'
1112

1213
type Props = {
@@ -25,6 +26,7 @@ export const DelegateToYoroiDRepBanner = ({onDismiss, isVisible}: Props) => {
2526
<DismissibleView isVisible={isVisible}>
2627
<LinearGradient start={{x: 1, y: 1}} end={{x: 0, y: 0}} colors={colors.gradient} style={styles.gradient}>
2728
<View style={styles.root}>
29+
<GovernanceBackground style={styles.backgroundImage} />
2830
<TouchableOpacity onPress={handleOnDismiss} style={styles.dismiss}>
2931
<Icon.Close color={colors.icon} size={20} />
3032
</TouchableOpacity>
@@ -43,6 +45,11 @@ export const DelegateToYoroiDRepBanner = ({onDismiss, isVisible}: Props) => {
4345
const useStyles = () => {
4446
const {color, atoms} = useTheme()
4547
const styles = StyleSheet.create({
48+
backgroundImage: {
49+
...atoms.absolute,
50+
right: 0,
51+
bottom: 0,
52+
},
4653
dismiss: {
4754
width: 20,
4855
height: 20,

0 commit comments

Comments
 (0)