Skip to content

Commit

Permalink
minifront: remove non-native-fee-warning (#1924)
Browse files Browse the repository at this point in the history
* delete non-native-fee-warning from mininfront

* changeset
  • Loading branch information
TalDerei authored Nov 25, 2024
1 parent 5cf7c55 commit 4ca4671
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 143 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-moons-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'minifront': minor
---

remove non-native-fee-warning from minifront
7 changes: 0 additions & 7 deletions apps/minifront/src/components/send/send-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { penumbraAddrValidation } from '../helpers';
import InputToken from '../../shared/input-token';
import { GasFee } from '../../shared/gas-fee';
import { useBalancesResponses, useStakingTokenMetadata } from '../../../state/shared';
import { NonNativeFeeWarning } from '../../shared/non-native-fee-warning';
import { transferableBalancesResponsesSelector } from '../../../state/send/helpers';
import { useRefreshFee } from '../../v2/transfer-layout/send-page/use-refresh-fee';

Expand Down Expand Up @@ -94,12 +93,6 @@ export const SendForm = () => {
loading={transferableBalancesResponses?.loading}
/>

<NonNativeFeeWarning
balancesResponses={transferableBalancesResponses?.data}
amount={Number(amount)}
source={selection}
/>

<GasFee
fee={fee}
feeTier={feeTier}
Expand Down
122 changes: 0 additions & 122 deletions apps/minifront/src/components/shared/non-native-fee-warning.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions apps/minifront/src/components/swap/swap-form/token-swap-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -140,19 +139,6 @@ export const TokenSwapInput = () => {
</div>
</div>
</div>

<NonNativeFeeWarning
amount={Number(amount)}
balancesResponses={balancesResponses?.data}
source={assetIn}
wrap={children => (
<>
{/* This div adds an empty line */}
<div className='h-4' />
{children}
</>
)}
/>
</Box>
);
};

0 comments on commit 4ca4671

Please sign in to comment.