Skip to content

Commit

Permalink
fix(wallet-mobile): hf modals discovery scrollable (#3699)
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed Oct 22, 2024
1 parent ba5f9df commit 5100ef9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useTheme} from '@yoroi/theme'
import {Image} from 'expo-image'
import * as React from 'react'
import {Linking, StyleSheet, Text, View} from 'react-native'
import {Linking, ScrollView, StyleSheet, Text, View} from 'react-native'

import {Button} from '../../../components/Button/Button'
import {Icon} from '../../../components/Icon'
Expand Down Expand Up @@ -67,7 +67,7 @@ export const ConfirmConnectionModal = ({name, website, onConfirm, logo, showSing
const imageUri = logo.length === 0 ? getDappFallbackLogo(website) : logo

return (
<View style={styles.root}>
<ScrollView style={styles.root} bounces={false}>
<View style={styles.imagesLine}>
<Icon.YoroiApp size={48} />

Expand Down Expand Up @@ -111,7 +111,7 @@ export const ConfirmConnectionModal = ({name, website, onConfirm, logo, showSing
<Spacer height={46} />

<Button title={strings.confirmConnectionModalConnect} shelleyTheme onPress={onConfirm} />
</View>
</ScrollView>
)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useTheme} from '@yoroi/theme'
import * as React from 'react'
import {Image, StyleSheet, Text, View} from 'react-native'
import {Image, ScrollView, StyleSheet, Text, View} from 'react-native'
import {useSafeAreaInsets} from 'react-native-safe-area-context'

import IllustrationDAppImage from '../../../../assets/img/illustration-dapp.png'
Expand Down Expand Up @@ -67,14 +67,14 @@ const Modal = () => {
const {closeModal} = useModal()

return (
<View style={styles.container}>
<ScrollView style={styles.container} bounces={false}>
<Image source={IllustrationDAppImage} style={styles.welcomeImage} />

<Text style={styles.welcomeText}>{strings.welcomeToYoroiDAppExplorerDescription}</Text>

<View style={styles.actions}>
<Button shelleyTheme onPress={closeModal} title={strings.next} />
</View>
</View>
</ScrollView>
)
}

0 comments on commit 5100ef9

Please sign in to comment.