Skip to content

Commit 7aaa01c

Browse files
committed
Update mithril explorer
Add the url of the 'release-preprod' aggregator.
1 parent f270cde commit 7aaa01c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

mithril-explorer/pages/index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import React, { useState } from 'react';
1+
import React, { useState } from 'react';
22
import PendingCertificate from '../components/PendingCertificate';
33
import SnapshotsList from '../components/SnapshotsList';
44
import Head from "next/head";
55
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";
77
import styles from "../styles/Home.module.css";
88

99
const available_aggregators = [
10+
"https://aggregator.release-preprod.api.mithril.network/aggregator",
1011
"https://aggregator.api.mithril.network/aggregator",
1112
"http://localhost:8080/aggregator"
1213
];
@@ -15,11 +16,11 @@ function IntervalSetter(props) {
1516
function handleChange(event) {
1617
props.onIntervalChange(parseInt(event.target.value));
1718
}
18-
19+
1920
function handleClick() {
2021
props.onStartStopPress(!props.isStartStopPressed);
2122
}
22-
23+
2324
return (
2425
<Form.Group as={Col} className={props.className}>
2526
<Form.Label>Update Interval:</Form.Label>
@@ -62,7 +63,7 @@ export default function Explorer() {
6263
function handleApiChange(api) {
6364
setAggregator(api);
6465
}
65-
66+
6667
function handleStartStopButtonPress(isPressed) {
6768
setAutoUpdate(isPressed);
6869
}
@@ -78,14 +79,14 @@ export default function Explorer() {
7879
<meta name="description" content="Explore a Mithril Network" />
7980
<link rel="icon" href="/explorer/favicon.ico" />
8081
</Head>
81-
82+
8283
<div className={styles.container}>
8384
<main className={styles.main}>
8485
<h1 className={styles.title}>Mithril Explorer</h1>
8586
<Stack gap={3}>
8687
<Form>
8788
<Row xs={1} sm={2}>
88-
<AggregatorSetter aggregator={aggregator} onAggregatorChange={handleApiChange} availableAggregators={available_aggregators} />
89+
<AggregatorSetter aggregator={aggregator} onAggregatorChange={handleApiChange} availableAggregators={available_aggregators} />
8990
<IntervalSetter
9091
interval={interval}
9192
onIntervalChange={handleIntervalChange}
@@ -98,7 +99,7 @@ export default function Explorer() {
9899
</Stack>
99100
</main>
100101
</div>
101-
102+
102103
<footer className={styles.footer}>
103104
<span className={styles.logo}>
104105
<Image src="/explorer/logo.png" alt="Mithril Logo" width={32} height={32} />

0 commit comments

Comments
 (0)