1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

fix: planner date picker local and starting day (#1864)

* fix type definitions

* use day of week setting + fix multiple type errors

* add locale for yyyy-mm-dd format
This commit is contained in:
Hayden 2022-11-27 11:01:56 -09:00 committed by GitHub
parent 3ad3d92e5f
commit 32c4ce4536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 9 deletions

View file

@ -4,7 +4,12 @@ import { useAsyncKey } from "./use-utils";
import { useUserApi } from "~/composables/api";
import { CreatePlanEntry, PlanEntryType, UpdatePlanEntry } from "~/lib/api/types/meal-plan";
export const planTypeOptions = [
type PlanOption = {
text: string;
value: PlanEntryType;
};
export const planTypeOptions: PlanOption[] = [
{ text: "Breakfast", value: "breakfast" },
{ text: "Lunch", value: "lunch" },
{ text: "Dinner", value: "dinner" },