From 0704d236bbcc1339c9d93ee8fc678c6a0e425841 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Fri, 9 May 2025 01:39:02 +0000 Subject: 0509 기술영업 조선 아이템 매트릭스 수정(type수정) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/items-ship/table/add-items-dialog.tsx | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'lib/items-ship/table/add-items-dialog.tsx') diff --git a/lib/items-ship/table/add-items-dialog.tsx b/lib/items-ship/table/add-items-dialog.tsx index 4abf5f8a..fdfe54cc 100644 --- a/lib/items-ship/table/add-items-dialog.tsx +++ b/lib/items-ship/table/add-items-dialog.tsx @@ -24,7 +24,6 @@ import { } from "../validations" import { createShipbuildingItem } from "../service" -import { ItemType } from "./excel/item-excel-template" import { Plus } from "lucide-react" import { toast } from "sonner" import { @@ -35,11 +34,6 @@ import { SelectValue, } from "@/components/ui/select" - -interface AddItemDialogProps { - itemType?: ItemType -} - const workTypes = [ { value: "기장", label: "기장" }, { value: "전장", label: "전장" }, @@ -48,7 +42,7 @@ const workTypes = [ { value: "철의", label: "철의" }, ] as const -export function AddItemDialog({ itemType = 'shipbuilding' }: AddItemDialogProps) { +export function AddItemDialog() { const [open, setOpen] = React.useState(false) const [isSubmitting, setIsSubmitting] = React.useState(false) @@ -127,7 +121,7 @@ export function AddItemDialog({ itemType = 'shipbuilding' }: AddItemDialogProps) 아이템 코드 - + @@ -172,7 +166,7 @@ export function AddItemDialog({ itemType = 'shipbuilding' }: AddItemDialogProps) > - + @@ -190,10 +184,9 @@ export function AddItemDialog({ itemType = 'shipbuilding' }: AddItemDialogProps) /> {/* 조선 아이템인 경우 선종 필드 표시 */} - {itemType === 'shipbuilding' && ( - ( 선종 @@ -203,8 +196,7 @@ export function AddItemDialog({ itemType = 'shipbuilding' }: AddItemDialogProps) )} - /> - )} + />