@@ -78,6 +78,7 @@ export interface SwapFromProps {
7878 data ?: SwapFormData ;
7979 theme : WidgetTheme ;
8080 cancelAutoProceed : ( ) => void ;
81+ subTitle : string ;
8182}
8283
8384class PriceImpactError extends Error {
@@ -87,7 +88,9 @@ class PriceImpactError extends Error {
8788 }
8889}
8990
90- export function SwapForm ( { data, theme, cancelAutoProceed } : SwapFromProps ) {
91+ export function SwapForm ( {
92+ data, theme, cancelAutoProceed, subTitle,
93+ } : SwapFromProps ) {
9194 const { t } = useTranslation ( ) ;
9295 const {
9396 swapState : {
@@ -106,7 +109,6 @@ export function SwapForm({ data, theme, cancelAutoProceed }: SwapFromProps) {
106109 ? NATIVE
107110 : `${ symbol . toLowerCase ( ) } -${ address ! . toLowerCase ( ) } ` ) , [ ] ) ;
108111
109- // const { cryptoFiatState, cryptoFiatDispatch } = useContext(CryptoFiatContext);
110112 const { conversions : usdConversions } = useCryptoUSDConversion ( checkout ?. config . environment ) ;
111113 const { viewDispatch } = useContext ( ViewContext ) ;
112114
@@ -939,13 +941,15 @@ export function SwapForm({ data, theme, cancelAutoProceed }: SwapFromProps) {
939941 marginBottom : 'base.spacing.x2' ,
940942 } }
941943 >
942- < Heading
943- size = "small"
944- weight = "regular"
945- sx = { { paddingBottom : 'base.spacing.x4' } }
946- >
947- { t ( 'views.SWAP.content.title' ) }
948- </ Heading >
944+ { subTitle !== '' ? (
945+ < Heading
946+ size = "small"
947+ weight = "regular"
948+ sx = { { paddingBottom : 'base.spacing.x4' } }
949+ >
950+ { subTitle }
951+ </ Heading >
952+ ) : null }
949953 < Box
950954 sx = { {
951955 display : 'flex' ,
0 commit comments