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