Make heatmaps report always available.

This commit is contained in:
Mike Cao committed 2026-05-05 10:43:39 -07:00
1 parent 12c10c48cd
commit c7f71e5758
5 files changed
+7 -24

No files matched your search

-1
View File
@@ -8,7 +8,6 @@ export type Config = {
linksUrl?: string;
pixelsUrl?: string;
privateMode: boolean;
selfRecordEnabled: boolean;
telemetryDisabled: boolean;
trackerScriptName?: string;
updatesDisabled: boolean;
+6 -12
View File
@@ -11,14 +11,12 @@ import {
Video,
} from '@/components/icons';
import { Funnel, Gauge, Lightning, Magnet, Money, Network, Path, Target } from '@/components/svg';
import { useConfig } from './useConfig';
import { useMessages } from './useMessages';
import { useNavigation } from './useNavigation';
export function useWebsiteNavItems(websiteId: string) {
const { t, labels } = useMessages();
const { pathname, renderUrl } = useNavigation();
const config = useConfig();
const renderPath = (path: string) =>
renderUrl(`/websites/${websiteId}${path}`, {
@@ -110,16 +108,12 @@ export function useWebsiteNavItems(websiteId: string) {
icon: <Video />,
path: renderPath('/replays'),
},
...(config?.selfRecordEnabled
? [
{
id: 'heatmaps',
label: t(labels.heatmaps),
icon: <Flame />,
path: renderPath('/heatmaps'),
},
]
: []),
{
id: 'heatmaps',
label: t(labels.heatmaps),
icon: <Flame />,
path: renderPath('/heatmaps'),
},
],
},
{