refactoring(estimate drawer): estimate drawer.

This commit is contained in:
elforjani3
2021-03-06 20:26:32 +02:00
parent be0c53d18a
commit fe5fc80ecb
6 changed files with 80 additions and 10 deletions

View File

@@ -68,8 +68,8 @@ function EstimatesDataTable({
};
// Handle drawer estimate.
const handleDrawerEstimate = () => {
openDrawer('estimate-drawer', {});
const handleDrawerEstimate = ({ id }) => {
openDrawer('estimate-drawer', { estimateId: id });
};
// Handle convent to invoice.