Skip to content

Commit

Permalink
fix: update action paddings on confirm TX screen (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored and SorinC6 committed Jan 30, 2024
1 parent 498a8b2 commit 564972a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/wallet-mobile/src/components/ScrollView/ScrollView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export const ScrollView = ({
return (
<RNScrollView
onLayout={(event) => {
if (!onScrollBarChange) return
if (onScrollBarChange) {
const {height} = event.nativeEvent.layout

const {height} = event.nativeEvent.layout

const shouldChange = wrapperHeight > Math.trunc(height)
onScrollBarChange(shouldChange)
const shouldChange = wrapperHeight > Math.trunc(height)
onScrollBarChange(shouldChange)
}
props.onLayout?.(event)
}}
{...props}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import React, {useEffect} from 'react'
import {useIntl} from 'react-intl'
import {ScrollView, StyleSheet, View, ViewProps} from 'react-native'
import {Platform, ScrollView, StyleSheet, View, ViewProps} from 'react-native'
import {SafeAreaView} from 'react-native-safe-area-context'

import {KeyboardAvoidingView, Spacer, ValidatedTextInput} from '../../../../components'
Expand Down Expand Up @@ -104,7 +104,7 @@ export const ConfirmTxScreen = () => {
)
}

const Actions = (props: ViewProps) => <View {...props} style={{padding: 16}} />
const Actions = (props: ViewProps) => <View style={styles.actions} {...props} />

const styles = StyleSheet.create({
root: {
Expand All @@ -115,6 +115,11 @@ const styles = StyleSheet.create({
flex: 1,
paddingHorizontal: 16,
},
actions: {
paddingTop: 16,
paddingHorizontal: 16,
paddingBottom: Platform.OS === 'ios' ? 25 : 16,
},
})

const useStrings = () => {
Expand Down

0 comments on commit 564972a

Please sign in to comment.