diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 9f25df95..1ae82acd 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -26,6 +26,7 @@ import "@/less/memo.less"; interface Props { memo: Memo; showCreator?: boolean; + showParent?: boolean; showVisibility?: boolean; showPinnedStyle?: boolean; lazyRendering?: boolean; @@ -228,7 +229,7 @@ const Memo: React.FC = (props: Props) => { >
- {props.showCreator && ( + {props.showCreator && creator && ( <> @@ -246,6 +247,14 @@ const Memo: React.FC = (props: Props) => { {displayTime} + {props.showPinnedStyle && memo.pinned && ( + <> + + + + + + )}
@@ -253,14 +262,6 @@ const Memo: React.FC = (props: Props) => { #{memo.id} - {memo.pinned && props.showPinnedStyle && ( - <> - - - - - - )} {props.showVisibility && memo.visibility !== "PRIVATE" && ( <> @@ -316,6 +317,18 @@ const Memo: React.FC = (props: Props) => { )}
+ {props.showParent && memo.parent && ( +
+ + + #{memo.parent.id} + {memo.parent.content} + +
+ )} {
{sortedMemos.map((memo) => ( - + ))} {loadingStatus === "fetching" ? ( diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsx index 3e9886d6..97185b7e 100644 --- a/web/src/pages/Explore.tsx +++ b/web/src/pages/Explore.tsx @@ -83,7 +83,7 @@ const Explore = () => {
{sortedMemos.map((memo) => ( - + ))} {loadingStatus === "fetching" ? (