Skip to content

Commit

Permalink
Use ChainId component
Browse files Browse the repository at this point in the history
  • Loading branch information
jlvandenhout committed Mar 19, 2024
1 parent 89ff565 commit f8736f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion theme/src/theme/ChainId/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { useEffect, useState } from 'react';
import { Web3 } from 'web3';

Expand All @@ -16,5 +17,5 @@ export function ChainId(props: ChainIdProps) {
.catch((error) => setValue(`Error: ${error.message}`));
}, []);

return value;
return <>{value}</>;
}
9 changes: 7 additions & 2 deletions theme/src/theme/NetworkInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { ChainId } from '../ChainId';

function IOTA() {
return (
Expand Down Expand Up @@ -100,7 +101,9 @@ function ShimmerEVM() {
<tr>
<td>Shimmer Token</td>
<td>ISC / EVM</td>
<td>148</td>
<td>
<ChainId url='https://json-rpc.evm.shimmer.network' />
</td>
<td>
<a
href='https://json-rpc.evm.shimmer.network'
Expand Down Expand Up @@ -217,7 +220,9 @@ function TestnetEVM() {
<tr>
<td>Testnet Tokens (no value)</td>
<td>ISC / EVM</td>
<td>1073</td>
<td>
<ChainId url='https://json-rpc.evm.testnet.shimmer.network' />
</td>
<td>
<a
href='https://json-rpc.evm.testnet.shimmer.network'
Expand Down

0 comments on commit f8736f3

Please sign in to comment.