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

pull/2946/head
Brilliant Hanabi 1 year ago committed by GitHub
parent 60efd3ac32
commit 81aa9b107f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -101,7 +101,11 @@ const MemoDetail = () => {
const handleCopyLinkBtnClick = () => {
copy(`${window.location.origin}/m/${memo.name}`);
toast.success(t("message.succeed-copy-link"));
if (memo.visibility !== Visibility.PUBLIC) {
toast.success(t("message.succeed-copy-link-not-public"));
} else {
toast.success(t("message.succeed-copy-link"));
}
};
const handleCommentCreated = async (commentId: number) => {

Loading…
Cancel
Save