"feat: enhance invoice management with schema updates, seed data, and new APIs"

This commit is contained in:
louiscklaw
2025-05-30 16:48:54 +08:00
parent 5a707427c6
commit fd20a3531b
48 changed files with 1541 additions and 179 deletions

View File

@@ -14,7 +14,7 @@ const metadata = { title: `Product details | Dashboard - ${CONFIG.appName}` };
export default function Page() {
const { id = '' } = useParams();
const { product, productLoading, productError } = useGetProduct(id);
const { currentProduct: product, productLoading, productError } = useGetProduct(id);
return (
<>

View File

@@ -12,13 +12,13 @@ const metadata = { title: `Product edit | Dashboard - ${CONFIG.appName}` };
export default function Page() {
const { id = '' } = useParams();
const { product } = useGetProduct(id);
const { currentProduct } = useGetProduct(id);
return (
<>
<title>{metadata.title}</title>
<ProductEditView product={product} />
<ProductEditView product={currentProduct} />
</>
);
}

View File

@@ -1,3 +1,5 @@
// src/pages/dashboard/product/list.tsx
import { CONFIG } from 'src/global-config';
import { ProductListView } from 'src/sections/product/view';