Unverified Commit 81aa9b10 authored by Brilliant Hanabi's avatar Brilliant Hanabi Committed by GitHub

feat: add notice when sharing private links in MemoDetail (#2942)

parent 60efd3ac
...@@ -101,7 +101,11 @@ const MemoDetail = () => { ...@@ -101,7 +101,11 @@ const MemoDetail = () => {
const handleCopyLinkBtnClick = () => { const handleCopyLinkBtnClick = () => {
copy(`${window.location.origin}/m/${memo.name}`); copy(`${window.location.origin}/m/${memo.name}`);
if (memo.visibility !== Visibility.PUBLIC) {
toast.success(t("message.succeed-copy-link-not-public"));
} else {
toast.success(t("message.succeed-copy-link")); toast.success(t("message.succeed-copy-link"));
}
}; };
const handleCommentCreated = async (commentId: number) => { const handleCommentCreated = async (commentId: number) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment