chore: throw toast when adding a new date overwrite (#11764)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-10-09 10:44:11 +00:00
1 parent 0b310c0ea8
commit a5993061f6
2 files changed
+5

No files matched your search

@@ -14,6 +14,7 @@ import {
DialogHeader,
DialogClose,
Switch,
showToast,
Form,
Button,
} from "@calcom/ui";
@@ -177,6 +178,9 @@ const DateOverrideForm = ({
className="ml-2"
color="primary"
type="submit"
onClick={() => {
showToast(t("date_successfully_added"), "success");
}}
disabled={selectedDates.length === 0}
data-testid="add-override-submit-btn">
{value ? t("date_overrides_update_btn") : t("date_overrides_add_btn")}