feat: Add days in the past selector on meal planner (#6857)

Co-authored-by: Michael Genson <genson.michael@gmail.com>
This commit is contained in:
Arnas Savickas
2026-03-26 21:09:52 +02:00
committed by GitHub
parent 9f47f38176
commit 41c3f1fced
4 changed files with 33 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ export enum ImagePosition {
}
export interface UserMealPlanPreferences {
numberOfDaysPast: number;
numberOfDays: number;
}
@@ -76,6 +77,7 @@ export function useUserMealPlanPreferences(): Ref<UserMealPlanPreferences> {
const fromStorage = useLocalStorage(
"meal-planner-preferences",
{
numberOfDaysPast: 0,
numberOfDays: 7,
},
{ mergeDefaults: true },