File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed
Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ interface Config {
66 brainUIUrl : string ;
77 w3sUrl : string ;
88 rpExplorerUrl : string ;
9+ beaconchaInUrl : string ;
910 explorerUrl : string ;
1011 package : string ;
1112}
@@ -25,6 +26,7 @@ class AppConfig {
2526 brainUIUrl : `http://brain.web3signer${ w3sSuffix } .dappnode` ,
2627 w3sUrl : `http://web3signer.web3signer${ w3sSuffix } .dappnode:9000` ,
2728 rpExplorerUrl : `https://${ networkPrefix } rocketscan.io` ,
29+ beaconchaInUrl : `https://${ networkPrefix } beaconcha.in` ,
2830 explorerUrl : `https://${ networkPrefix } etherscan.io` ,
2931 package : isMainnet ? `rocketpool.public.dappnode` : `rocketpool-testnet.public.dappnode` ,
3032 } ;
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ import ImportToSignerDialog from "./ImportToSignerDialog";
88
99function MinipoolCard ( {
1010 data,
11- rpExplorerUrl,
11+ beaconchaInUrl,
12+ // rpExplorerUrl,
1213} : {
1314 data : Minipool ;
1415 rpExplorerUrl ?: string ;
16+ beaconchaInUrl ?: string ;
1517} ) : JSX . Element {
1618 const [ importToSignerDialogOpen , setImportToSignerDialogOpen ] =
1719 React . useState < boolean > ( false ) ;
@@ -40,6 +42,12 @@ function MinipoolCard({
4042 sx = { { backgroundColor : { backgroundColor } } }
4143 />
4244 </ div >
45+ < div className = "validator-status" >
46+ < Chip
47+ label = { data . validator . active ? "Active" : "Inactive" }
48+ sx = { { backgroundColor : data . validator . active ? "#81C784" : "#E57373" } }
49+ />
50+ </ div >
4351
4452 < Typography color = "text.secondary" className = "minipool-ether" >
4553 { toEtherString (
@@ -56,15 +64,15 @@ function MinipoolCard({
5664
5765 < div className = "explorer-button-container" >
5866 < Button
59- href = { `${ rpExplorerUrl } /minipool /${ data . address } ` }
67+ href = { `${ beaconchaInUrl } /validator /${ data . validatorPubkey } ` }
6068 variant = "outlined"
6169 color = "primary"
6270 target = "_blank"
6371 rel = "noopener"
6472 endIcon = { < OpenInNewIcon /> }
6573 className = "minipool-button"
6674 >
67- View on RocketScan
75+ View on Beaconcha.in
6876 </ Button >
6977 < Button
7078 variant = "contained"
Original file line number Diff line number Diff line change @@ -47,9 +47,12 @@ const MinipoolDetails: React.FC<MinipoolDetailsProps> = ({
4747 } }
4848 >
4949 { minipoolStatus ?. minipools . map ( ( minipool , index ) => (
50- < >
51- < MinipoolCard data = { minipool } key = { index } rpExplorerUrl = { data ?. config ?. rpExplorerUrl } />
52- </ >
50+ < MinipoolCard
51+ key = { index }
52+ data = { minipool }
53+ beaconchaInUrl = { data ?. config ?. beaconchaInUrl }
54+ rpExplorerUrl = { data ?. config ?. rpExplorerUrl }
55+ />
5356 ) ) }
5457 </ Grid >
5558 { minipoolStatus ?. error && (
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export interface Config {
44 brainUIUrl : string ;
55 w3sUrl : string ;
66 rpExplorerUrl : string ;
7+ beaconchaInUrl : string ;
78 explorerUrl : string ;
89 package : string ;
910}
You can’t perform that action at this time.
0 commit comments