fix: add fitness sub-pages to mobile More sheet
Food Library, Fitness Goals, and Quick Meals now accessible from the mobile bottom tab bar's More menu.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/state';
|
||||
import { LayoutDashboard, DollarSign, Package, Activity, MoreVertical, MapPin, BookOpen, Library, Settings } from '@lucide/svelte';
|
||||
import { LayoutDashboard, DollarSign, Package, Activity, MoreVertical, MapPin, BookOpen, Library, Settings, Target, UtensilsCrossed, Zap } from '@lucide/svelte';
|
||||
|
||||
interface Props {
|
||||
visibleApps?: string[];
|
||||
@@ -66,6 +66,20 @@
|
||||
Trips
|
||||
</a>
|
||||
{/if}
|
||||
{#if showApp('fitness')}
|
||||
<a href="/fitness/foods" class="more-sheet-item" onclick={closeMore}>
|
||||
<UtensilsCrossed size={20} />
|
||||
Food Library
|
||||
</a>
|
||||
<a href="/fitness/goals" class="more-sheet-item" onclick={closeMore}>
|
||||
<Target size={20} />
|
||||
Fitness Goals
|
||||
</a>
|
||||
<a href="/fitness/templates" class="more-sheet-item" onclick={closeMore}>
|
||||
<Zap size={20} />
|
||||
Quick Meals
|
||||
</a>
|
||||
{/if}
|
||||
{#if showApp('reader')}
|
||||
<a href="/reader" class="more-sheet-item" onclick={closeMore}>
|
||||
<BookOpen size={20} />
|
||||
|
||||
Reference in New Issue
Block a user