File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ export interface NetworkProps {
6
6
}
7
7
8
8
export const Network : React . FC < NetworkProps > = ( { id } ) => {
9
+ if ( id === 42 ) {
10
+ return (
11
+ < StyledKovan >
12
+ < h4 > Kovan</ h4 >
13
+ </ StyledKovan >
14
+ )
15
+ }
9
16
if ( id === 3 ) {
10
17
return (
11
18
< StyledRopsten >
@@ -23,6 +30,11 @@ export const Network: React.FC<NetworkProps> = ({ id }) => {
23
30
return null
24
31
}
25
32
33
+ const StyledKovan = styled . div `
34
+ align-items: center;
35
+ color: purple;
36
+ `
37
+
26
38
const StyledRink = styled . div `
27
39
align-items: center;
28
40
color: ${ ( props ) => props . theme . color . orange [ 500 ] } ;
Original file line number Diff line number Diff line change @@ -119,8 +119,13 @@ const Liquidity = ({ icons }) => {
119
119
</ >
120
120
)
121
121
}
122
- if ( ! ( chainId === 4 || chainId === 1 ) && active ) {
123
- return < Text > Switch to Rinkeby or Mainnet Networks</ Text >
122
+ if ( ! ( chainId === 42 || chainId === 4 || chainId === 1 ) && active ) {
123
+ return (
124
+ < >
125
+ < Spacer />
126
+ < Text > Switch to Rinkeby, Kovan, or Mainnet Networks</ Text >
127
+ </ >
128
+ )
124
129
}
125
130
if (
126
131
! MetaMaskOnboarding . isMetaMaskInstalled ( ) ||
Original file line number Diff line number Diff line change @@ -148,8 +148,13 @@ const Market = ({ market, data }) => {
148
148
</ >
149
149
)
150
150
}
151
- if ( ! ( chainId === 4 || chainId === 1 ) && active ) {
152
- return < Text > Switch to Rinkeby or Mainnet Networks</ Text >
151
+ if ( ! ( chainId === 42 || chainId === 4 || chainId === 1 ) && active ) {
152
+ return (
153
+ < >
154
+ < Spacer />
155
+ < Text > Switch to Rinkeby, Kovan, or Mainnet Networks</ Text >
156
+ </ >
157
+ )
153
158
}
154
159
if (
155
160
! MetaMaskOnboarding . isMetaMaskInstalled ( ) ||
You can’t perform that action at this time.
0 commit comments