diff --git a/skale-network b/skale-network index 8c27b43..20616e0 160000 --- a/skale-network +++ b/skale-network @@ -1 +1 @@ -Subproject commit 8c27b4390bc22beaabe4107bea9b5e1f8e0f79de +Subproject commit 20616e0652a7a6f53b3f7ea90d86fee2e6086662 diff --git a/src/components/ChainIcon.tsx b/src/components/ChainIcon.tsx index f8a3c4b..2c63542 100644 --- a/src/components/ChainIcon.tsx +++ b/src/components/ChainIcon.tsx @@ -2,7 +2,7 @@ import OfflineBoltRoundedIcon from '@mui/icons-material/OfflineBoltRounded' import { SkaleNetwork } from '../core/interfaces' import { chainIconPath } from '../core/metadata' -import { cls, styles } from '../core/css' +import { cls, styles, cmn } from '../core/css' export default function ChainIcon(props: { skaleNetwork: SkaleNetwork @@ -17,5 +17,5 @@ export default function ChainIcon(props: { if (iconPath !== undefined) { return } - return + return } diff --git a/src/components/SFuelWarning.tsx b/src/components/SFuelWarning.tsx index c7eb653..b5a5dbc 100644 --- a/src/components/SFuelWarning.tsx +++ b/src/components/SFuelWarning.tsx @@ -180,12 +180,15 @@ export default function SFuelWarning(props: {}) { } const mainnetTransfer = chainName1 === MAINNET_CHAIN_NAME || chainName2 === MAINNET_CHAIN_NAME + const noSFuelDest = sFuelStatus === 'warning' && chainName1 === MAINNET_CHAIN_NAME + const noSFuelSource = sFuelStatus === 'error' && chainName2 === MAINNET_CHAIN_NAME + const sFuelBtn = noSFuelDest || noSFuelSource || !mainnetTransfer function getSFuelText() { - if (mainnetTransfer) { - return SFUEL_TEXT['gas'][sFuelStatus] + if (sFuelBtn) { + return SFUEL_TEXT['sfuel'][sFuelStatus] } - return SFUEL_TEXT['sfuel'][sFuelStatus] + return SFUEL_TEXT['gas'][sFuelStatus] } if (loading && chainName2) @@ -201,7 +204,7 @@ export default function SFuelWarning(props: {}) {

⛽ {getSFuelText()}

- {!mainnetTransfer ? ( + {sFuelBtn ? (
{mining ? (