diff --git a/src/components/dropdowns/AssetDropdown.tsx b/src/components/dropdowns/AssetDropdown.tsx index 5d5fe952..f9ef9ba3 100644 --- a/src/components/dropdowns/AssetDropdown.tsx +++ b/src/components/dropdowns/AssetDropdown.tsx @@ -101,6 +101,7 @@ type AssetDropdownProps = SelectProps & { label?: string; assetLabel?: string; blockchainLabel?: string; + disabledFilter?: (symbol: BridgeCurrency | string) => boolean; }; const getAssetData = ( @@ -129,6 +130,7 @@ export const AssetDropdown: FunctionComponent = ({ balances, assetLabel = "Asset", blockchainLabel = "Blockchain", + disabledFilter = () => false, ...rest }) => { const styles = useAssetDropdownStyles(); @@ -210,10 +212,7 @@ export const AssetDropdown: FunctionComponent = ({ diff --git a/src/features/mint/steps/MintInitialStep.tsx b/src/features/mint/steps/MintInitialStep.tsx index 0504048d..6a5714c3 100644 --- a/src/features/mint/steps/MintInitialStep.tsx +++ b/src/features/mint/steps/MintInitialStep.tsx @@ -12,6 +12,7 @@ import { } from "../../../components/dropdowns/AssetDropdown"; import { PaperContent } from "../../../components/layout/Paper"; import { + BridgeCurrency, supportedLockCurrencies, supportedMintDestinationChains, toMintedCurrency, @@ -27,6 +28,9 @@ import { import { MintIntro } from "../components/MintHelpers"; import { $mint, setMintCurrency } from "../mintSlice"; +const mintDisabledFilter = (symbol: BridgeCurrency | string) => { + return symbol === BridgeCurrency.LUNA || symbol === BridgeCurrency.RENLUNA; +}; export const MintInitialStep: FunctionComponent = ({ onNext, }) => { @@ -75,6 +79,7 @@ export const MintInitialStep: FunctionComponent = ({ available={supportedLockCurrencies} value={currency} onChange={handleCurrencyChange} + disabledFilter={mintDisabledFilter} /> diff --git a/src/features/release/steps/ReleaseProcessStep.tsx b/src/features/release/steps/ReleaseProcessStep.tsx index 0f22c92c..75b742b6 100644 --- a/src/features/release/steps/ReleaseProcessStep.tsx +++ b/src/features/release/steps/ReleaseProcessStep.tsx @@ -40,10 +40,7 @@ import { paths } from "../../../pages/routes"; import { useNotifications } from "../../../providers/Notifications"; import { usePageTitle, usePaperTitle } from "../../../providers/TitleProviders"; import { getBurnChainMap } from "../../../services/rentx"; -import { - BridgeCurrency, - getChainConfigByRentxName, -} from "../../../utils/assetConfigs"; +import { getChainConfigByRentxName } from "../../../utils/assetConfigs"; import { $exchangeRates } from "../../marketData/marketDataSlice"; import { findExchangeRate } from "../../marketData/marketDataUtils"; import { @@ -58,7 +55,6 @@ import { TransactionFees } from "../../transactions/components/TransactionFees"; import { TransactionMenu } from "../../transactions/components/TransactionMenu"; import { AnyBurnSession, - LunaWarningDialog, ProgressStatus, } from "../../transactions/components/TransactionsHelpers"; import { useTransactionMenuControl } from "../../transactions/transactionsHooks"; @@ -263,14 +259,6 @@ export const ReleaseProcessStep: FunctionComponent = ({ onClose={handleModalClose} onEnable={handleEnable} /> -