chore: added estimate delete modal (#792)

This commit is contained in:
Kunal Vishwakarma 2023-04-12 15:03:04 +05:30 committed by GitHub
parent f734aad10d
commit 0f9812cf2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 127 additions and 3 deletions

View file

@ -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",