feat(web): gate routines nav behind feature flag
This commit is contained in:
parent
672acadba6
commit
e5d18b1c9c
@ -13,6 +13,7 @@ import { requestNotificationPermission } from '@/lib/notifications';
|
||||
import { formatTime, formatDate } from '@/lib/format';
|
||||
import { Plus, Clock, Bell, Keyboard, Sun, Moon, Settings, Eye, BarChart3, ListChecks, Cloud, CloudOff, Loader2 } from 'lucide-react';
|
||||
import { useSync } from '@/lib/use-sync';
|
||||
import { isEnabled as isFlagEnabled } from '@/lib/feature-flags';
|
||||
import { BUILT_IN_CATEGORIES, matchesCategory } from '@/lib/categories';
|
||||
import Link from 'next/link';
|
||||
import { FeedbackButton } from './FeedbackButton';
|
||||
@ -171,14 +172,16 @@ export function Dashboard() {
|
||||
>
|
||||
<Eye size={18} />
|
||||
</Link>
|
||||
<Link
|
||||
href="/routines"
|
||||
className="p-2 rounded-lg transition-colors"
|
||||
style={{ color: 'var(--cm-text-tertiary)' }}
|
||||
title="Routines"
|
||||
>
|
||||
<ListChecks size={18} />
|
||||
</Link>
|
||||
{isFlagEnabled('routines_disabled') ? null : (
|
||||
<Link
|
||||
href="/routines"
|
||||
className="p-2 rounded-lg transition-colors"
|
||||
style={{ color: 'var(--cm-text-tertiary)' }}
|
||||
title="Routines"
|
||||
>
|
||||
<ListChecks size={18} />
|
||||
</Link>
|
||||
)}
|
||||
<Link
|
||||
href="/history"
|
||||
className="p-2 rounded-lg transition-colors"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user