From 18e1252fd8af39ceb8c3dd84d48d7e810321d1c3 Mon Sep 17 00:00:00 2001 From: Akmal Isomadinov Date: Fri, 19 Jul 2024 21:01:58 +0500 Subject: [PATCH] Doceditor:Components:CompletedForm Added toast --- .../src/components/completed-form/CompletedForm.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/doceditor/src/components/completed-form/CompletedForm.tsx b/packages/doceditor/src/components/completed-form/CompletedForm.tsx index 5efcaf64a7..eac77f6da6 100644 --- a/packages/doceditor/src/components/completed-form/CompletedForm.tsx +++ b/packages/doceditor/src/components/completed-form/CompletedForm.tsx @@ -39,6 +39,7 @@ import DownloadIconUrl from "PUBLIC_DIR/images/download.react.svg?url"; import LinkIconUrl from "PUBLIC_DIR/images/tablet-link.react.svg?url"; import MailIcon from "PUBLIC_DIR/images/icons/12/mail.svg"; +import { toastr } from "@docspace/shared/components/toast"; import { Text } from "@docspace/shared/components/text"; import { getBgPattern, getLogoUrl } from "@docspace/shared/utils/common"; import { isNullOrUndefined } from "@docspace/shared/utils/typeGuards"; @@ -138,10 +139,11 @@ export const CompletedForm = ({ history.pushState({}, "", url); }; - const copyLinkFile = () => { + const copyLinkFile = async () => { const url = getFolderUrl(completedForm.folderId, false); - copyShareLink(url); + await copyShareLink(url); + toastr.success(t("Common:LinkCopySuccess")); }; const handleDownload = () => {