enable Charts

This commit is contained in:
jejolare 2024-10-02 22:56:26 +07:00
parent f4234fcfdc
commit e2580dd039
3 changed files with 12 additions and 11 deletions

View file

@ -52,12 +52,12 @@ function Header(props: HeaderProps) {
>
Assets
</Link>
{/* <Link
<Link
className={page === "Charts" ? "selected" : undefined}
href="/charts"
>
Charts
</Link> */}
</Link>
<Link
className={page === "API" ? "selected" : undefined}
href="/zano_api"

View file

@ -57,11 +57,7 @@ function InfoTopPanel(props: InfoTopPanelProps) {
async function onBackClick(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) {
event.preventDefault();
if (document.referrer) {
router.back();
} else {
router.push("/");
}
router.back();
}
return (
<div

View file

@ -157,10 +157,15 @@ function Charts() {
title="Average Number Of Transactions Per Block"
requestTitle="avg-trans-per-block"
/>
<Chart
title="Hash Rate"
requestTitle="hash-rate"
/>
<div style={{
pointerEvents: "none",
opacity: 0.4
}}>
<Chart
title="Hash Rate (inactive)"
requestTitle="hash-rate"
/>
</div>
<Chart
title="PoW Difficulty"
requestTitle="difficulty-pow"