From ba5bb44e64633adcb42f4bb174a4e7f0a94fcd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20Eren?= Date: Wed, 24 Jul 2024 12:50:45 +0300 Subject: [PATCH] Fix modal scroll --- .../src/modules/TipModal/index.tsx | 181 +++++++++--------- 1 file changed, 89 insertions(+), 92 deletions(-) diff --git a/JoyboyCommunity/src/modules/TipModal/index.tsx b/JoyboyCommunity/src/modules/TipModal/index.tsx index 33410415..c4c6c2f5 100644 --- a/JoyboyCommunity/src/modules/TipModal/index.tsx +++ b/JoyboyCommunity/src/modules/TipModal/index.tsx @@ -2,7 +2,6 @@ import {NDKEvent} from '@nostr-dev-kit/ndk'; import {useAccount} from '@starknet-react/core'; import {forwardRef, useState} from 'react'; import {View} from 'react-native'; -import {SafeAreaView} from 'react-native-safe-area-context'; import {CallData, uint256} from 'starknet'; import {Avatar, Button, Input, Modalize, Picker, Text} from '../../components'; @@ -115,111 +114,109 @@ export const TipModal = forwardRef( }; return ( - - - - - - - - - - {profile?.displayName ?? profile?.name ?? event?.pubkey} - + + + + + + + + + {profile?.displayName ?? profile?.name ?? event?.pubkey} + - {profile?.nip05 && ( - - @{profile?.nip05} - - )} - + {profile?.nip05 && ( + + @{profile?.nip05} + + )} - - - {event?.content} - - - - setToken(itemValue as TokenSymbol)} - > - {Object.values(TOKENS).map((tkn) => ( - - ))} - - - - + + {event?.content} + + + + + + setToken(itemValue as TokenSymbol)} + > + {Object.values(TOKENS).map((tkn) => ( + + ))} + - - - - Sending - + + - {amount.length > 0 && token.length > 0 ? ( - - {amount} {token} - - ) : ( - - ... - - )} - + + + + Sending + - - - to + {amount.length > 0 && token.length > 0 ? ( + + {amount} {token} - - {(profile?.nip05 && `@${profile.nip05}`) ?? - profile?.displayName ?? - profile?.name ?? - event?.pubkey} + ) : ( + + ... - + )} - - + + + to + + + {(profile?.nip05 && `@${profile.nip05}`) ?? + profile?.displayName ?? + profile?.name ?? + event?.pubkey} + - - - Tip friends and support creators with your favorite tokens. - - + + + + + + + + Tip friends and support creators with your favorite tokens. + ); },