From 89c3508fd59fab84a202b029002b588f1555e69d Mon Sep 17 00:00:00 2001 From: yongjoon_km Date: Wed, 15 May 2024 13:57:02 +0900 Subject: [PATCH] feat: close dialog and show toast for copy to clipboard Change the toast duration from 5 seconds to 1.5 seconds. --- packages/excalidraw/components/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index 792a7a94c..843f57ec3 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -1788,6 +1788,7 @@ class App extends React.Component { `"${fileHandle.name}"`, ) : t("toast.fileSaved"), + duration: 1500, }, }); } else if (type === "clipboard") { @@ -1795,6 +1796,7 @@ class App extends React.Component { openDialog: null, toast: { message: t("toast.copyToClipboard"), + duration: 1500, }, }); }