"feat: enhance invoice management with schema updates, seed data, and new APIs"
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
@@ -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} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@@ -1,3 +1,5 @@
|
||||
// src/pages/dashboard/product/list.tsx
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { ProductListView } from 'src/sections/product/view';
|
||||
|
||||
|
Reference in New Issue
Block a user