Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minifront: remove non-native-fee-warning #1924

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
};
Loading