[dyad] Removing Products and Orders links and improving BookOutForm responsiveness - wrote 2 file(s) + extra files edited outside of Dyad
This commit is contained in:
parent
c4545285a6
commit
7aa992fe81
2 changed files with 9 additions and 12 deletions
|
|
@ -29,16 +29,6 @@ const sidebarNavItems = [
|
|||
href: "/reports",
|
||||
icon: Book,
|
||||
},
|
||||
{
|
||||
title: "Products",
|
||||
href: "/products",
|
||||
icon: Package,
|
||||
},
|
||||
{
|
||||
title: "Orders",
|
||||
href: "/orders",
|
||||
icon: ShoppingCart,
|
||||
},
|
||||
{
|
||||
title: "Purchase Orders",
|
||||
href: "/purchase-orders",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,13 @@ import {
|
|||
FormMessage,
|
||||
} from "@/components/ui/form"
|
||||
import { Input } from "@/components/ui/input"
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from "@/components/ui/select"
|
||||
import { showSuccess, showError } from "@/utils/toast"
|
||||
import pb from "@/lib/pocketbase"
|
||||
import { StockItemCombobox } from "@/components/book-out/StockItemCombobox"
|
||||
|
|
@ -212,12 +219,12 @@ export function BookOutForm({ setOpen, refreshData }: BookOutFormProps) {
|
|||
<div className="border p-4 rounded-md">
|
||||
<h3 className="text-lg font-semibold mb-4">Items to Book Out</h3>
|
||||
{form.getValues("items").map((item, index) => (
|
||||
<div key={index} className="grid grid-cols-4 gap-4 mb-4 items-center">
|
||||
<div key={index} className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-4 items-center">
|
||||
<FormField
|
||||
control={form.control}
|
||||
name={`items.${index}.itemName`}
|
||||
render={({ field }) => (
|
||||
<FormItem className="col-span-2">
|
||||
<FormItem>
|
||||
<FormLabel>Item Name</FormLabel>
|
||||
<StockItemCombobox
|
||||
stockItems={stockItems}
|
||||
|
|
|
|||
Loading…
Reference in a new issue