Skip to content

Commit

Permalink
feat: close dialog and show toast for copy to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjoon-km committed May 13, 2024
1 parent 6d510b8 commit 4dc975c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/excalidraw/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1790,6 +1790,13 @@ class App extends React.Component<AppProps, AppState> {
: t("toast.fileSaved"),
},
});
} else if (type === "clipboard") {
this.setState({
openDialog: null,
toast: {
message: t("toast.copyToClipboard"),
},
});
}
};

Expand Down

0 comments on commit 4dc975c

Please sign in to comment.