From b71cf869c21597466f4cb3d4a218b1a2fbe5d33b Mon Sep 17 00:00:00 2001 From: Chewing Glass Date: Tue, 24 Oct 2023 15:08:06 -0400 Subject: [PATCH] Add header --- src/components/AutoGasBanner.tsx | 5 +++-- src/locales/en.ts | 1 + src/solana/WalletSignBottomSheet.tsx | 8 ++++++++ src/solana/walletSignBottomSheetTypes.tsx | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/AutoGasBanner.tsx b/src/components/AutoGasBanner.tsx index 815e41df6..4c36dcb29 100644 --- a/src/components/AutoGasBanner.tsx +++ b/src/components/AutoGasBanner.tsx @@ -1,5 +1,4 @@ import CloseCircle from '@assets/images/closeCircleFilled.svg' -import Info from '@assets/images/info.svg' import Warning from '@assets/images/warning.svg' import { useMint, @@ -38,6 +37,7 @@ import { ReAnimatedBox } from './AnimatedBox' import Box from './Box' import Text from './Text' import TouchableOpacityBox from './TouchableOpacityBox' +import CircleLoader from './CircleLoader' const MIN_HEIGHT = 52 @@ -124,6 +124,7 @@ const Banner = ({ onLayout, ...rest }: BannerProps) => { url: '', additionalMessage: t('transactions.autoGasConvert', { symbol }), serializedTxs: [serializedTx], + header: t('transactions.autoGasConvertHeader'), }) if (decision) { await sendAndConfirmRawTransaction( @@ -185,7 +186,7 @@ const Banner = ({ onLayout, ...rest }: BannerProps) => { {error ? ( ) : ( - + )} { bottomSheetModalRef.current?.expand() setTotalSolFee(0) @@ -150,6 +152,7 @@ const WalletSignBottomSheet = forwardRef( warning, additionalMessage, serializedTxs, + header, }) const p = new Promise((resolve) => { promiseResolve = resolve @@ -249,6 +252,11 @@ const WalletSignBottomSheet = forwardRef( onLayout={handleContentLayout} > + {walletSignOpts.header && ( + + {walletSignOpts.header} + + )} Promise hide: () => void }