mirror of
https://github.com/oceanprotocol/status-frontend.git
synced 2025-01-07 04:24:19 +01:00
Linking to each chart
This commit is contained in:
parent
27c879b83f
commit
b1a219d7e4
@ -1,5 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
import Link from 'next/link'
|
||||||
import styles from '../styles/Home.module.css'
|
import styles from '../styles/Home.module.css'
|
||||||
import LogoAsset from '../images/logo.svg'
|
import LogoAsset from '../images/logo.svg'
|
||||||
import Chart from '../components/Chart'
|
import Chart from '../components/Chart'
|
||||||
@ -27,7 +28,9 @@ export default function Stats() {
|
|||||||
<main>
|
<main>
|
||||||
<div className={styles.chartGrid}>
|
<div className={styles.chartGrid}>
|
||||||
{stats.map((chart) => (
|
{stats.map((chart) => (
|
||||||
|
<Link href={`/stats/${chart.name}`} key={chart.title}>
|
||||||
<Chart key={chart.title} path={chart.path} title={chart.title} />
|
<Chart key={chart.title} path={chart.path} title={chart.title} />
|
||||||
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user