Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix(lint): fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
floriaaan committed Feb 9, 2024
1 parent 154b06f commit 5afb756
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions apps/web/app/admin/stock/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ import { Sheet, SheetTrigger } from "@/components/ui/sheet";
import { useAdmin } from "@/hooks/useAdmin";
import { cn } from "@/lib/utils";
import { LinkIcon, PlusIcon } from "lucide-react";
import {useEffect, useState} from "react";
import { useEffect, useState } from "react";

export default function StockPage() {
const { refetchProducts, restaurant, products, ingredients, ingredients_restaurant, suppliers, supply_orders } = useAdmin();
const { refetchProducts, restaurant, products, ingredients, ingredients_restaurant, suppliers, supply_orders } =
useAdmin();
const [ingredientSheetOpen, setIngredientSheetOpen] = useState(false);
const [ingredientRestaurantSheetOpen, setIngredientRestaurantSheetOpen] = useState(false);
const [supplierSheetOpen, setSupplierSheetOpen] = useState(false);

// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => refetchProducts, []);


if (!restaurant) return <LargeComponentLoader />;

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function IngredientRestaurantCreateEditForm({

unitPrice: 0,
pricePerKilo: 0,
quantity:0,
quantity: 0,

alertThreshold: 0,

Expand Down
6 changes: 3 additions & 3 deletions apps/web/components/admin/order/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Sheet } from "@/components/ui/sheet";
import { toPrice } from "@/lib/product/toPrice";
import { cn } from "@/lib/utils";
import { DeliveryType, Order } from "@/types/order";
import { ColumnDef } from "@tanstack/react-table";
import { format } from "date-fns";
import { MoreHorizontal } from "lucide-react";
import { MdArrowDropUp, MdCopyAll } from "react-icons/md";
import { toPrice } from "@/lib/product/toPrice";
import { format } from "date-fns";

// This type is used to define the shape of our data.
// You can use a Zod schema here if you want.
Expand Down Expand Up @@ -107,7 +107,7 @@ export const orders_columns: ColumnDef<Order>[] = [
},
{
id: "actions",
cell: ({ row, getValue }) => {
cell: ({ row }) => {
const o = row.original;

return (
Expand Down

0 comments on commit 5afb756

Please sign in to comment.