feat: add image upload functionality and stock update feature in sparepart components

This commit is contained in:
2025-11-26 17:16:09 +07:00
parent 14f8a5d472
commit afcb85a323
4 changed files with 344 additions and 215 deletions

View File

@@ -21,6 +21,7 @@ const TableList = memo(function TableList({
firstLoad = true,
columnDynamic = false,
cardComponent, // New prop for custom card component
onStockUpdate, // Prop to pass to card component
}) {
const [gridLoading, setGridLoading] = useState(false);
@@ -166,6 +167,7 @@ const TableList = memo(function TableList({
showPreviewModal={showPreviewModal}
showEditModal={showEditModal}
showDeleteDialog={showDeleteDialog}
onStockUpdate={onStockUpdate}
/>
) : (
<Row gutter={24} style={{ marginTop: '16px' }}>