diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 0e8bc1e..8f665cf 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/massalabs/metamask-massa.git" }, "source": { - "shasum": "iiRWI4joXMEzwWG6xh2p4qU/av3uF8sSap8XaFvJseE=", + "shasum": "Yj5vc0Btmwc469HpD7oRnhRAXLXh+XGnxX4mWP421fU=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/snap/src/components/HomePage.tsx b/packages/snap/src/components/HomePage.tsx index f4df1f1..1b1cca8 100644 --- a/packages/snap/src/components/HomePage.tsx +++ b/packages/snap/src/components/HomePage.tsx @@ -34,6 +34,20 @@ export const HomePage: SnapComponent = ({ balance, }) => { const networkName = CHAIN_ID_TO_NETWORK_NAME[networkInfo.chainId] ?? 'Custom'; + + const networkList = + networkName === MAINNET + ? [MAINNET, BUILDNET, LABNET] + : [BUILDNET, MAINNET, LABNET]; + + const dropDown = ( + + {networkList.map((network) => ( + + ))} + + ); + return ( @@ -43,11 +57,7 @@ export const HomePage: SnapComponent = ({ Network: Select a network: - - - - - + {dropDown}