Skip to content

Commit

Permalink
removed Pangolin and Pangoro (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
isunaslabs authored Mar 10, 2023
1 parent ae85170 commit 18204aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/app-config/src/supportedNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import { darwinia } from "./chains/darwinia";
import { pangolin } from "./chains/pangolin";
import { pangoro } from "./chains/pangoro";

export const supportedNetworks: ChainConfig[] = [crab, pangoro, pangolin];
export const supportedNetworks: ChainConfig[] = [crab];
16 changes: 11 additions & 5 deletions packages/app/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ import SelectAccountModal, { SelectAccountModalRef } from "../SelectAccountModal
const Header = () => {
const [networkOptionsTrigger, setNetworkOptionsTrigger] = useState<HTMLDivElement | null>(null);
const { t } = useAppTranslation();
const { selectedNetwork, changeSelectedNetwork, selectedAccount, connectWallet, forceSetAccountAddress, walletConfig } =
useWallet();
const {
selectedNetwork,
changeSelectedNetwork,
selectedAccount,
connectWallet,
forceSetAccountAddress,
walletConfig,
} = useWallet();
const [searchParams, setSearchParams] = useSearchParams();
const location = useLocation();
const selectAccountModalRef = useRef<SelectAccountModalRef>(null);
Expand All @@ -39,7 +45,7 @@ const Header = () => {
}
} else {
/* use test network by default */
const index = supportedNetworks.findIndex((network) => network.name === "Pangolin");
const index = supportedNetworks.findIndex((network) => network.name === "Crab");
changeConnectedNetwork(supportedNetworks[index]);
}
}, []);
Expand Down Expand Up @@ -93,7 +99,7 @@ const Header = () => {
) : (
<Button
onClick={() => {
connectWallet(walletConfig?.name || 'Polkadot{.js}');
connectWallet(walletConfig?.name || "Polkadot{.js}");
}}
className={"!px-[15px]"}
btnType={"secondary"}
Expand Down Expand Up @@ -136,7 +142,7 @@ const Header = () => {
) : (
<Button
onClick={() => {
connectWallet(walletConfig?.name || 'Polkadot{.js}');
connectWallet(walletConfig?.name || "Polkadot{.js}");
}}
className={"!h-[36px] !px-[15px]"}
btnType={"secondary"}
Expand Down

0 comments on commit 18204aa

Please sign in to comment.