1
- import React , { useState } from 'react' ;
1
+ import React , { useState } from 'react' ;
2
2
import PendingCertificate from '../components/PendingCertificate' ;
3
3
import SnapshotsList from '../components/SnapshotsList' ;
4
4
import Head from "next/head" ;
5
5
import Image from "next/image" ;
6
- import { Form , Stack , Button , Row , Col , InputGroup } from "react-bootstrap" ;
6
+ import { Form , Stack , Button , Row , Col , InputGroup } from "react-bootstrap" ;
7
7
import styles from "../styles/Home.module.css" ;
8
8
9
9
const available_aggregators = [
10
+ "https://aggregator.release-preprod.api.mithril.network/aggregator" ,
10
11
"https://aggregator.api.mithril.network/aggregator" ,
11
12
"http://localhost:8080/aggregator"
12
13
] ;
@@ -15,11 +16,11 @@ function IntervalSetter(props) {
15
16
function handleChange ( event ) {
16
17
props . onIntervalChange ( parseInt ( event . target . value ) ) ;
17
18
}
18
-
19
+
19
20
function handleClick ( ) {
20
21
props . onStartStopPress ( ! props . isStartStopPressed ) ;
21
22
}
22
-
23
+
23
24
return (
24
25
< Form . Group as = { Col } className = { props . className } >
25
26
< Form . Label > Update Interval:</ Form . Label >
@@ -62,7 +63,7 @@ export default function Explorer() {
62
63
function handleApiChange ( api ) {
63
64
setAggregator ( api ) ;
64
65
}
65
-
66
+
66
67
function handleStartStopButtonPress ( isPressed ) {
67
68
setAutoUpdate ( isPressed ) ;
68
69
}
@@ -78,14 +79,14 @@ export default function Explorer() {
78
79
< meta name = "description" content = "Explore a Mithril Network" />
79
80
< link rel = "icon" href = "/explorer/favicon.ico" />
80
81
</ Head >
81
-
82
+
82
83
< div className = { styles . container } >
83
84
< main className = { styles . main } >
84
85
< h1 className = { styles . title } > Mithril Explorer</ h1 >
85
86
< Stack gap = { 3 } >
86
87
< Form >
87
88
< Row xs = { 1 } sm = { 2 } >
88
- < AggregatorSetter aggregator = { aggregator } onAggregatorChange = { handleApiChange } availableAggregators = { available_aggregators } />
89
+ < AggregatorSetter aggregator = { aggregator } onAggregatorChange = { handleApiChange } availableAggregators = { available_aggregators } />
89
90
< IntervalSetter
90
91
interval = { interval }
91
92
onIntervalChange = { handleIntervalChange }
@@ -98,7 +99,7 @@ export default function Explorer() {
98
99
</ Stack >
99
100
</ main >
100
101
</ div >
101
-
102
+
102
103
< footer className = { styles . footer } >
103
104
< span className = { styles . logo } >
104
105
< Image src = "/explorer/logo.png" alt = "Mithril Logo" width = { 32 } height = { 32 } />
0 commit comments