mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 13:05:36 +01:00
funnel checkpoint
This commit is contained in:
parent
ebc8cb488a
commit
b5f84159d2
8 changed files with 21 additions and 12 deletions
|
|
@ -2,6 +2,8 @@ import FunnelGraph from 'funnel-graph-js/dist/js/funnel-graph';
|
|||
import { useEffect, useRef } from 'react';
|
||||
import EmptyPlaceholder from 'components/common/EmptyPlaceholder';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
import styles from './FunnelChart.module.css';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export default function FunnelChart({ data }) {
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
|
|
@ -33,7 +35,7 @@ export default function FunnelChart({ data }) {
|
|||
|
||||
return (
|
||||
<>
|
||||
{data?.length > 0 && <div className="funnel" ref={funnel} />}
|
||||
{data?.length > 0 && <div className={classNames(styles.funnel, 'funnel')} ref={funnel} />}
|
||||
{data?.length === 0 && <EmptyPlaceholder message={formatMessage(messages.noResultsFound)} />}
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue