mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Initial expanded view in details.
This commit is contained in:
parent
b392a51676
commit
f535dca7b9
14 changed files with 108 additions and 39 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import React, { useState, useEffect, useMemo } from 'react';
|
||||
import { useSpring, animated, config } from 'react-spring';
|
||||
import classNames from 'classnames';
|
||||
import CheckVisible from '../helpers/CheckVisible';
|
||||
import CheckVisible from 'components/helpers/CheckVisible';
|
||||
import Button from 'components/common/Button';
|
||||
import Arrow from 'assets/arrow-right.svg';
|
||||
import { get } from 'lib/web';
|
||||
import { percentFilter } from 'lib/filters';
|
||||
import styles from './RankingsChart.module.css';
|
||||
|
|
@ -16,6 +18,7 @@ export default function RankingsChart({
|
|||
className,
|
||||
dataFilter,
|
||||
onDataLoad = () => {},
|
||||
onExpand = () => {},
|
||||
}) {
|
||||
const [data, setData] = useState();
|
||||
|
||||
|
|
@ -62,6 +65,11 @@ export default function RankingsChart({
|
|||
<Row key={x} label={x} value={y} percent={z} animate={visible} />
|
||||
))}
|
||||
</div>
|
||||
<div className={styles.footer}>
|
||||
<Button icon={<Arrow />} size="xsmall" onClick={() => onExpand(title)}>
|
||||
<div>More</div>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</CheckVisible>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue