feat: add visibility select in ShareMemoDialog (#2941)

In ShareMemoDialog, user can change the visibility
of the memo, so that the memo can be set to public
to be viewed by anyone with the link.
This commit is contained in:
Brilliant Hanabi
2024-02-13 09:28:16 +08:00
committed by GitHub
parent b3ca9969c4
commit ebe3678288
3 changed files with 68 additions and 26 deletions

View File

@ -101,7 +101,7 @@ const MemoActionMenu = (props: Props) => {
<Icon.Edit3 className="w-4 h-auto" />
{t("common.edit")}
</MenuItem>
<MenuItem onClick={() => showShareMemoDialog(memo)}>
<MenuItem onClick={() => showShareMemoDialog(memo.id)}>
<Icon.Share className="w-4 h-auto" />
{t("common.share")}
</MenuItem>