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:
parent
3ad3d92e5f
commit
32c4ce4536
3 changed files with 29 additions and 9 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue