diff --git a/app/images/times.svg b/app/images/times.svg
deleted file mode 100644
index 5aa9be3a5..000000000
--- a/app/images/times.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/ui/components/app/add-network/add-network.js b/ui/components/app/add-network/add-network.js
index 0bc911fed..2e81abaa0 100644
--- a/ui/components/app/add-network/add-network.js
+++ b/ui/components/app/add-network/add-network.js
@@ -80,11 +80,10 @@ const AddNetwork = ({
{item.ticker}
-
))}
diff --git a/ui/components/app/add-network/add-network.stories.js b/ui/components/app/add-network/add-network.stories.js
index 5dbcc6bee..1617ea820 100644
--- a/ui/components/app/add-network/add-network.stories.js
+++ b/ui/components/app/add-network/add-network.stories.js
@@ -1,53 +1,66 @@
import React from 'react';
import AddNetwork from '.';
+const MATIC_TOKEN_IMAGE_URL = './images/matic-token.png';
+const ARBITRUM_IMAGE_URL = './images/arbitrum.svg';
+const OPTIMISM_IMAGE_URL = './images/optimism.svg';
+
export default {
title: 'Components/APP/AddNetwork',
id: __filename,
-};
-
-export const DefaultStory = () => {
- const MATIC_TOKEN_IMAGE_URL = './images/matic-token.png';
- const ARBITRUM_IMAGE_URL = './images/arbitrum.svg';
- const OPTIMISM_IMAGE_URL = './images/optimism.svg';
-
- const FEATURED_RPCS = [
- {
- chainId: '0x89',
- nickname: 'Polygon Mumbai',
- rpcUrl:
- 'https://polygon-mainnet.infura.io/v3/2b6d4a83d89a438eb1b5d036788ab29c',
- ticker: 'MATIC',
- rpcPrefs: {
- blockExplorerUrl: 'https://mumbai.polygonscan.com/',
- imageUrl: MATIC_TOKEN_IMAGE_URL,
- },
+ argTypes: {
+ onBackClick: {
+ action: 'onBackClick',
},
- {
- chainId: '0x99',
- nickname: 'Optimism Testnet ',
- rpcUrl:
- 'https://optimism-kovan.infura.io/v3/2b6d4a83d89a438eb1b5d036788ab29c',
- ticker: 'KOR',
- rpcPrefs: {
- blockExplorerUrl: 'https://kovan-optimistic.etherscan.io/',
- imageUrl: OPTIMISM_IMAGE_URL,
- },
+ onAddNetworkClick: {
+ action: 'onAddNetworkClick',
},
- {
- chainId: '0x66eeb',
- nickname: 'Arbitrum Testnet',
- rpcUrl:
- 'https://arbitrum-rinkeby.infura.io/v3/2b6d4a83d89a438eb1b5d036788ab29c',
- ticker: 'ARETH',
- rpcPrefs: {
- blockExplorerUrl: 'https://testnet.arbiscan.io/',
- imageUrl: ARBITRUM_IMAGE_URL,
- },
+ onAddNetworkManuallyClick: {
+ action: 'onAddNetworkManuallyClick',
},
- ];
-
- return ;
+ featuredRPCS: {
+ control: 'array',
+ },
+ },
+ args: {
+ featuredRPCS: [
+ {
+ chainId: '0x89',
+ nickname: 'Polygon Mumbai',
+ rpcUrl:
+ 'https://polygon-mainnet.infura.io/v3/2b6d4a83d89a438eb1b5d036788ab29c',
+ ticker: 'MATIC',
+ rpcPrefs: {
+ blockExplorerUrl: 'https://mumbai.polygonscan.com/',
+ imageUrl: MATIC_TOKEN_IMAGE_URL,
+ },
+ },
+ {
+ chainId: '0x99',
+ nickname: 'Optimism Testnet ',
+ rpcUrl:
+ 'https://optimism-kovan.infura.io/v3/2b6d4a83d89a438eb1b5d036788ab29c',
+ ticker: 'KOR',
+ rpcPrefs: {
+ blockExplorerUrl: 'https://kovan-optimistic.etherscan.io/',
+ imageUrl: OPTIMISM_IMAGE_URL,
+ },
+ },
+ {
+ chainId: '0x66eeb',
+ nickname: 'Arbitrum Testnet',
+ rpcUrl:
+ 'https://arbitrum-rinkeby.infura.io/v3/2b6d4a83d89a438eb1b5d036788ab29c',
+ ticker: 'ARETH',
+ rpcPrefs: {
+ blockExplorerUrl: 'https://testnet.arbiscan.io/',
+ imageUrl: ARBITRUM_IMAGE_URL,
+ },
+ },
+ ],
+ },
};
+export const DefaultStory = (args) => ;
+
DefaultStory.storyName = 'Default';
diff --git a/ui/components/app/add-network/index.scss b/ui/components/app/add-network/index.scss
index 9c0dfd169..2260c78c3 100644
--- a/ui/components/app/add-network/index.scss
+++ b/ui/components/app/add-network/index.scss
@@ -15,11 +15,10 @@
}
&__add-icon {
- height: 16px;
- width: 12px;
color: var(--color-text-alternative);
margin-left: auto;
margin-right: 0;
+ cursor: pointer;
}
&__footer {