chore: added estimate delete modal (#792)
This commit is contained in:
parent
f734aad10d
commit
0f9812cf2c
4 changed files with 127 additions and 3 deletions
|
|
@ -61,6 +61,13 @@ const EstimatesSettings: NextPage = () => {
|
|||
|
||||
estimatesService
|
||||
.deleteEstimate(workspaceSlug as string, projectId as string, estimateId)
|
||||
.then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Success!",
|
||||
message: "Estimate Deleted successfully.",
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
setToastAlert({
|
||||
type: "error",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue