chore: update
This commit is contained in:
@@ -11,7 +11,7 @@ export default function ProductModal({
|
||||
onClose,
|
||||
}: ProductModalProps) {
|
||||
const isEdit = product !== null;
|
||||
const [form, setForm] = useState<Omit<MenuItemEntity, "id">>({
|
||||
const [form, setForm] = useState<MenuItemEntity>({
|
||||
name: product?.name ?? "",
|
||||
price: product?.price ?? 0,
|
||||
imageUrl: product?.imageUrl ?? "/imgs/products/placeholder.jpg",
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ export interface Department {
|
||||
}
|
||||
|
||||
export interface MenuItemEntity {
|
||||
id: string;
|
||||
id?: string;
|
||||
name: string;
|
||||
price: number;
|
||||
eatery?: EateryEntity;
|
||||
|
||||
Reference in New Issue
Block a user