diff --git a/src/components/AppChains.tsx b/src/components/AppChains.tsx index 8c28846..02d7e5f 100644 --- a/src/components/AppChains.tsx +++ b/src/components/AppChains.tsx @@ -35,6 +35,8 @@ export default function AppChains(props: { chainsMeta: interfaces.ChainsMetadataMap isXs: boolean }) { + if (props.schains.length === 0) return + return (
diff --git a/src/components/chains/HubTile.tsx b/src/components/chains/HubTile.tsx index ed659f9..3626d77 100644 --- a/src/components/chains/HubTile.tsx +++ b/src/components/chains/HubTile.tsx @@ -70,16 +70,8 @@ export default function HubTile(props: { >
-

{alias}

- + diff --git a/src/pages/Bridge.tsx b/src/pages/Bridge.tsx index 77f1a7b..71a8212 100644 --- a/src/pages/Bridge.tsx +++ b/src/pages/Bridge.tsx @@ -60,21 +60,20 @@ export default function Bridge(props: { isXs: boolean }) { const mpc = useMetaportStore((state) => state.mpc) - const chainName1 = useMetaportStore((state) => state.chainName1) - const chainName2 = useMetaportStore((state) => state.chainName2) - const setChainName1 = useMetaportStore((state) => state.setChainName1) - const setChainName2 = useMetaportStore((state) => state.setChainName2) - - const appName1 = useMetaportStore((state) => state.appName1) - const appName2 = useMetaportStore((state) => state.appName2) - const setAppName1 = useMetaportStore((state) => state.setAppName1) - const setAppName2 = useMetaportStore((state) => state.setAppName2) - - const token = useMetaportStore((state) => state.token) - const tokens = useMetaportStore((state) => state.tokens) - const setToken = useMetaportStore((state) => state.setToken) - - const transactionsHistory = useMetaportStore((state) => state.transactionsHistory) + const { + chainName1, + chainName2, + setChainName1, + setChainName2, + appName1, + appName2, + setAppName1, + setAppName2, + token, + tokens, + setToken, + transactionsHistory + } = useMetaportStore((state) => state) function validChainName(chainName: string | null): boolean { if (!chainName) return false diff --git a/src/pages/Chains.tsx b/src/pages/Chains.tsx index c94917a..3856de6 100644 --- a/src/pages/Chains.tsx +++ b/src/pages/Chains.tsx @@ -27,7 +27,8 @@ import { useState, useEffect } from 'react' import Container from '@mui/material/Container' import Stack from '@mui/material/Stack' import CircularProgress from '@mui/material/CircularProgress' -import ArrowOutwardRoundedIcon from '@mui/icons-material/ArrowOutwardRounded' +import EditRoundedIcon from '@mui/icons-material/EditRounded' +import LanguageRoundedIcon from '@mui/icons-material/LanguageRounded' import HubsSection from '../components/HubsSection' import { getPrimaryCategory } from '../components/CategoryBadge' @@ -116,7 +117,7 @@ export default function Chains(props: {