Skip to content

Commit fc04d9a

Browse files
committed
refactor(explorer): group components related to aggregator choice, data and refresh interval in a ControlPanel component
1 parent 7ec6e8e commit fc04d9a

File tree

9 files changed

+262
-258
lines changed

9 files changed

+262
-258
lines changed

mithril-explorer/__tests__/AggregatorSetter.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { render, screen } from "@testing-library/react";
22
import "@testing-library/jest-dom";
33
import { initStore } from "./helpers";
44
import { Provider } from "react-redux";
5-
import AggregatorSetter from "#/AggregatorSetter";
5+
import AggregatorSetter from "#/ControlPanel/AggregatorSetter";
66
import default_available_aggregators from "@/aggregators-list";
77
import { settingsSlice } from "@/store/settingsSlice";
88

mithril-explorer/src/app/page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
Tooltip,
1616
} from "chart.js";
1717
import initMithrilClient from "@mithril-dev/mithril-client-wasm";
18-
import AggregatorStatus from "#/AggregatorStatus";
18+
import ControlPanel from "#/ControlPanel";
1919
import CardanoDbSnapshotsList from "#/Artifacts/CardanoDbSnapshotsList";
2020
import CardanoStakeDistributionsList from "#/Artifacts/CardanoStakeDistributionsList";
2121
import CardanoTransactionsSnapshotsList from "#/Artifacts/CardanoTransactionsSnapshotsList";
@@ -101,7 +101,7 @@ export default function Explorer() {
101101

102102
return (
103103
<Stack gap={3}>
104-
<AggregatorStatus />
104+
<ControlPanel />
105105
<Tabs activeKey={currentTab} onSelect={(key) => setCurrentTab(key)}>
106106
<Tab title="Cardano Db" eventKey={signedEntityType.CardanoImmutableFilesFull}>
107107
<CardanoDbSnapshotsList />

mithril-explorer/src/components/AggregatorStatus/index.js

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)