mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
DropDown component. Renamed files.
This commit is contained in:
parent
ff4492ffb5
commit
9f112c8cc9
16 changed files with 149 additions and 48 deletions
|
|
@ -3,7 +3,7 @@ import ChartJS from 'chart.js';
|
|||
import { format } from 'date-fns';
|
||||
import styles from './PageviewsChart.module.css';
|
||||
|
||||
export default function PageviewsChart({ data, unit }) {
|
||||
export default function PageviewsChart({ data, unit, children }) {
|
||||
const canvas = useRef();
|
||||
const chart = useRef();
|
||||
const [tooltip, setTooltip] = useState({});
|
||||
|
|
@ -138,6 +138,7 @@ export default function PageviewsChart({ data, unit }) {
|
|||
<div className={styles.chart}>
|
||||
<canvas ref={canvas} width={960} height={400} />
|
||||
<Tootip {...tooltip} />
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue