chore: fix i18n vietnamese typos and update MemoCardDialog (#228)

This commit is contained in:
f97
2022-09-18 08:17:46 +07:00
committed by GitHub
parent 13aa61bbc0
commit 050a2d39fa
4 changed files with 18 additions and 12 deletions

View File

@ -112,12 +112,12 @@ const MemoCardDialog: React.FC<Props> = (props: Props) => {
const handleCopyMemoLinkBtnClick = () => {
if (memo.visibility === "PRIVATE") {
toastHelper.error("This memo is private only.");
toastHelper.error(t("message.private-only"));
return;
}
copy(`${window.location.origin}/explore?memoId=${memo.id}`);
toastHelper.success("Copied");
toastHelper.success(t("message.copied"));
};
const handleEditMemoBtnClick = () => {