From 17c2118e7b1296310f43565cebc81f1b46ffc0b3 Mon Sep 17 00:00:00 2001 From: jorbuedo Date: Thu, 13 Jun 2024 16:51:31 +0200 Subject: [PATCH] (pool-transition) Fix small screen modal scroll (#3300) --- .../PoolTransition/PoolTransitionModal.tsx | 136 +++++++++--------- 1 file changed, 71 insertions(+), 65 deletions(-) diff --git a/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx b/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx index 8002853953..96ca97ee18 100644 --- a/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx +++ b/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx @@ -5,6 +5,7 @@ import {Image, StyleSheet, Text, View, ViewProps} from 'react-native' import LinearGradient from 'react-native-linear-gradient' import {Button, Icon, useModal} from '../../components' +import {ScrollView} from '../../components/ScrollView/ScrollView' import {Space} from '../../components/Space/Space' import {formatTimeSpan} from '../../yoroi-wallets/utils' import {useStrings} from './usePoolTransition' @@ -41,96 +42,98 @@ export const PoolTransitionModal = ({ return ( - {isActive ? strings.warning : strings.finalWarning} + + + {isActive ? strings.warning : strings.finalWarning} - + - + + + {strings.currentPool} - - - {strings.currentPool} + + {poolTransition.current.pic != null && ( + + )} - - {poolTransition.current.pic != null && ( - - )} + {`[${poolTransition.current.ticker}] ${poolTransition.current.name}`} + + - {`[${poolTransition.current.ticker}] ${poolTransition.current.name}`} - - - - - {strings.estimatedRoa} + + {strings.estimatedRoa} - {poolTransition.current.roa} % - + {poolTransition.current.roa} % + - - {strings.fee} + + {strings.fee} - {formatFee(poolTransition.current.taxRatio)} % - + {formatFee(poolTransition.current.taxRatio)} % + - - {isActive ? strings.poolWillStopRewards : strings.poolNoRewards} + + {isActive ? strings.poolWillStopRewards : strings.poolNoRewards} - {isActive && ( - - {'\n'} + {isActive && ( + + {'\n'} - {formatTimeSpan(timeSpan)} + {formatTimeSpan(timeSpan)} + + )} - )} - - + - + - + - + - - + + - - {strings.newPool} + + {strings.newPool} - - {poolTransition.suggested.pic != null && ( - - )} + + {poolTransition.suggested.pic != null && ( + + )} - {`[${poolTransition.suggested.ticker}] ${poolTransition.suggested.name}`} - - + {`[${poolTransition.suggested.ticker}] ${poolTransition.suggested.name}`} + + - - {strings.estimatedRoa} + + {strings.estimatedRoa} - {poolTransition.suggested.roa} % - + {poolTransition.suggested.roa} % + - - {strings.fee} + + {strings.fee} - {formatFee(poolTransition.suggested.taxRatio)} % - + {formatFee(poolTransition.suggested.taxRatio)} % + - {strings.poolGeneratesRewards} - + {strings.poolGeneratesRewards} + - + + +