diff --git a/web/src/components/MemoCardDialog.tsx b/web/src/components/MemoCardDialog.tsx index 28113cab..8800b8c3 100644 --- a/web/src/components/MemoCardDialog.tsx +++ b/web/src/components/MemoCardDialog.tsx @@ -1,4 +1,3 @@ -import copy from "copy-to-clipboard"; import { useState, useEffect, useCallback } from "react"; import { useTranslation } from "react-i18next"; import { editorStateService, memoService, userService } from "../services"; @@ -116,14 +115,13 @@ const MemoCardDialog: React.FC = (props: Props) => { setMemo(memo); }, []); - const handleCopyMemoLinkBtnClick = () => { + const handleGotoMemoLinkBtnClick = () => { if (memo.visibility === "PRIVATE") { toastHelper.error(t("message.private-only")); return; } - copy(`${window.location.origin}/explore?memoId=${memo.id}`); - toastHelper.success(t("message.copied")); + window.open(`/m/${memo.id}`); }; const handleEditMemoBtnClick = () => { @@ -169,8 +167,8 @@ const MemoCardDialog: React.FC = (props: Props) => {
<> -