Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Feb 17, 2024
1 parent 83f6770 commit f606787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const AddNewTableRow: React.FC<AddNewTableRowProps> = ({}) => {
timeOfDay: timeOfDay as TimeOfDay,
name,
color,
orderIndex: (meals || []).length,
orderIndex: tableStore.dataSorted.length,
weekOfYear: dashboardStore.calendar.week,
year: dashboardStore.calendar.year,
},
Expand Down
4 changes: 1 addition & 3 deletions web/src/components/pages/dashboard/table/TableGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TIME_OF_DAY_CONFIGS, debounce } from "@/utils/constants";
import { catchErrorAlerts, classNames } from "@/utils/helpers/clientUtils";
import { UniqueIdentifier } from "@dnd-kit/core";
import { SyntheticListenerMap } from "@dnd-kit/core/dist/hooks/utilities";
import { Button, Chip, useDisclosure } from "@nextui-org/react";
import { Button, Chip } from "@nextui-org/react";
import { FaRegTrashAlt } from "@react-icons/all-files/fa/FaRegTrashAlt";
import { useTranslations } from "next-intl";
import React, { useCallback, useState } from "react";
Expand All @@ -31,9 +31,7 @@ export const TableGroup: React.FC<TableGroupProps> = ({
const group = tableStore.getGroup(id);
const [color, setColor] = useState<string>(group?.color ?? "");
const [groupName, setGroupName] = useState<string>(group?.name ?? "");

const { isHighRank, isOrderMenu } = useMeHook();
const { isOpen, onOpen, onOpenChange } = useDisclosure();
const { userMealsAdmin } = useUserMealHook();
const { updateWeeklyMealGroup, deleteWeeklyMealgRoup, isPast } =
useWeeklyMealGroupHook();
Expand Down

0 comments on commit f606787

Please sign in to comment.