fix estimate table to view details redirect
This commit is contained in:
parent
9de586cf3c
commit
49840b6c38
@ -175,7 +175,7 @@ const tableActions = [
|
||||
{
|
||||
label: "View Details",
|
||||
action: (rowData) => {
|
||||
router.push(`/estimate?address=${encodeURIComponent(rowData.address)}`);
|
||||
router.push(`/estimate?name=${encodeURIComponent(rowData.id)}`);
|
||||
},
|
||||
type: "button",
|
||||
style: "info",
|
||||
@ -189,8 +189,8 @@ const tableActions = [
|
||||
];
|
||||
|
||||
const handleEstimateClick = (status, rowData) => {
|
||||
// Navigate to estimate details page with the address
|
||||
router.push(`/estimate?address=${encodeURIComponent(rowData.address)}`);
|
||||
// Navigate to estimate details page with the name
|
||||
router.push(`/estimate?name=${encodeURIComponent(rowData.name)}`);
|
||||
};
|
||||
|
||||
const closeSubmitEstimateModal = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user