feat: unpin button in the corner (#374)

* feat: unpin button in corner

* chore: update
This commit is contained in:
boojack
2022-10-30 13:21:24 +08:00
committed by GitHub
parent 64f0662a61
commit 29966451b6
2 changed files with 26 additions and 1 deletions

View File

@ -184,6 +184,13 @@ const Memo: React.FC<Props> = (props: Props) => {
return (
<div className={`memo-wrapper ${"memos-" + memo.id} ${memo.pinned ? "pinned" : ""}`} ref={memoContainerRef}>
{memo.pinned && (
<div className="corner-container">
<span className="tip-text" onClick={handleTogglePinMemoBtnClick}>
{t("common.unpin")}
</span>
</div>
)}
<div className="memo-top-wrapper">
<div className="status-text-container">
<span className="time-text" onClick={handleShowMemoStoryDialog}>