{t("home.loading")}
} - - {state.status === "error" && ( -{t("home.error")}
- )} - - {state.status === "loaded" && state.planning === null && ( -{t("home.empty")}
- )} - - {state.status === "loaded" && state.planning !== null && ( -| {t("home.table.day")} | -{t("home.table.meal")} | -{t("home.table.recipe")} | -
|---|---|---|
| {item.weekDay} | -{item.meal} | -{item.recipe.name} | -
{t("planning.loading")}
+ )} + + {state.status === "error" && ( ++ {t("common.loadError")} +
+ )} + + {state.status === "loaded" && ( +| + {days.map(({ weekDay, date }) => ( + | + {t(`planning.days.${weekDay}`)} + {date.day} + | + ))} +
|---|---|
| {t(`planning.meals.${meal}`)} | + {days.map(({ weekDay, date }) => ( +
{t("home.error")}
++ {t("common.loadError")} +
{t("home.error")}
++ {t("common.loadError")} +