Removed useReport hook. Journey styles.

This commit is contained in:
Mike Cao 2025-06-07 00:20:57 -07:00
parent 2af95b5802
commit d4bc72e90b
4 changed files with 8 additions and 12 deletions

View file

@ -28,11 +28,12 @@
.stats {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
justify-content: flex-start;
gap: 10px;
width: 100%;
height: 40px;
height: 60px;
}
.visitors {
@ -44,7 +45,7 @@
.dropoff {
font-weight: 600;
color: var(--font-color-muted);
background: var(--base-color-3);
background: var(--base-color-2);
padding: 4px 8px;
border-radius: 5px;
}

View file

@ -185,7 +185,9 @@ export function Journey({
<div className={styles.visitors} title={column.visitorCount}>
{formatLongNumber(column.visitorCount)} {formatMessage(labels.visitors)}
</div>
{columnIndex > 0 && <div className={styles.dropoff}>{dropOffPercent}</div>}
<div>
{columnIndex > 0 && <div className={styles.dropoff}>{dropOffPercent}</div>}
</div>
</div>
</div>
<div className={styles.nodes}>

View file

@ -49,7 +49,6 @@ export * from './useMessages';
export * from './useModified';
export * from './usePagedQuery';
export * from './useRegionNames';
export * from './useReport';
export * from './useSticky';
export * from './useNavigation';
export * from './useTimezone';

View file

@ -1,6 +0,0 @@
import { useContext } from 'react';
import { ReportContext } from '@/app/(main)/reports/[reportId]/Report';
export function useReport() {
return useContext(ReportContext);
}