Closed cdrice26 closed 1 month ago
This looks awesome! 2 things:
new Array<Meal>().fill({} as Meal)
. I tried replacing it with an empty array and nothing went wrong. Is all that intentional?I also just added some memos in the mealQueue to disable the add button if no meals are in the queue or no days are selected and disables the clear button if there's no meals in the queue.
I've implemented the changes you requested, I agree, those make sense. Yes I think a notification component is a good idea.
I've added the state management and custom useState hook to the software, and also pulled in the real meals into the AvailableMeals table. The custom meal editor and sorting logic are not yet implemented, they will be a separate PR.