{children}
}
- * />
- * ```
- */
- wrap?: (children: ReactNode) => ReactNode;
-}) => {
- const { data } = useGasPrices();
- const stakingTokenMetadata = useStakingTokenMetadata();
- const shouldRender =
- !!amount &&
- hasRelevantAltTokenBalance({
- source,
- balancesResponses: balancesResponses ?? [],
- gasPrices: data ?? [],
- stakingAssetMetadata: stakingTokenMetadata.data,
- });
- if (!shouldRender) {
- return null;
- }
-
- return wrap(
-
- Privacy Warning:
-
- You are using an alternative token for transaction fees, which may pose a privacy risk. It
- is recommended to use the native token (UM) for better privacy and security.
-
-
,
- );
-};
diff --git a/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx b/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx
index 9893c5cc8..c3221c053 100644
--- a/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx
+++ b/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx
@@ -13,7 +13,6 @@ import { AssetSelector } from '../../shared/selectors/asset-selector';
import BalanceSelector from '../../shared/selectors/balance-selector';
import { zeroValueView } from '../../../utils/zero-value-view';
import { isValidAmount } from '../../../state/helpers';
-import { NonNativeFeeWarning } from '../../shared/non-native-fee-warning';
import { NumberInput } from '../../shared/number-input';
import { useAssets, useBalancesResponses } from '../../../state/shared';
import { getBalanceByMatchingMetadataAndAddressIndex } from '../../../state/swap/getters';
@@ -140,19 +139,6 @@ export const TokenSwapInput = () => {
-
- (
- <>
- {/* This div adds an empty line */}
-
- {children}
- >
- )}
- />
);
};