mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: remove debug codes
This commit is contained in:
@ -28,7 +28,6 @@ const VersionUpdateMessage = ({ inbox }: Props) => {
|
|||||||
id: inbox.activityId,
|
id: inbox.activityId,
|
||||||
})
|
})
|
||||||
.then(({ activity }) => {
|
.then(({ activity }) => {
|
||||||
console.log("activity", activity);
|
|
||||||
setActivity(activity);
|
setActivity(activity);
|
||||||
});
|
});
|
||||||
}, [inbox.activityId]);
|
}, [inbox.activityId]);
|
||||||
|
@ -42,7 +42,7 @@ const Memo: React.FC<Props> = (props: Props) => {
|
|||||||
const [shouldRender, setShouldRender] = useState<boolean>(lazyRendering ? false : true);
|
const [shouldRender, setShouldRender] = useState<boolean>(lazyRendering ? false : true);
|
||||||
const [displayTime, setDisplayTime] = useState<string>(getRelativeTimeString(memo.displayTs));
|
const [displayTime, setDisplayTime] = useState<string>(getRelativeTimeString(memo.displayTs));
|
||||||
const memoContainerRef = useRef<HTMLDivElement>(null);
|
const memoContainerRef = useRef<HTMLDivElement>(null);
|
||||||
const readonly = memo.creatorUsername !== extractUsernameFromName(user?.name);
|
const readonly = memo.creatorUsername !== extractUsernameFromName(user?.name || "");
|
||||||
const [creator, setCreator] = useState(userV1Store.getUserByUsername(memo.creatorUsername));
|
const [creator, setCreator] = useState(userV1Store.getUserByUsername(memo.creatorUsername));
|
||||||
const referenceRelations = memo.relationList.filter((relation) => relation.type === "REFERENCE");
|
const referenceRelations = memo.relationList.filter((relation) => relation.type === "REFERENCE");
|
||||||
const commentRelations = memo.relationList.filter((relation) => relation.relatedMemoId === memo.id && relation.type === "COMMENT");
|
const commentRelations = memo.relationList.filter((relation) => relation.relatedMemoId === memo.id && relation.type === "COMMENT");
|
||||||
|
@ -28,8 +28,6 @@ const RelationListView = (props: Props) => {
|
|||||||
setRelationList(relationList.filter((relation) => relation.relatedMemoId !== memo.id));
|
setRelationList(relationList.filter((relation) => relation.relatedMemoId !== memo.id));
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("referencingMemoList", referencingMemoList);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{referencingMemoList.length > 0 && (
|
{referencingMemoList.length > 0 && (
|
||||||
|
@ -22,7 +22,7 @@ const MemoList: React.FC = () => {
|
|||||||
const user = useCurrentUser();
|
const user = useCurrentUser();
|
||||||
const { tag: tagQuery, duration, text: textQuery, visibility } = filter;
|
const { tag: tagQuery, duration, text: textQuery, visibility } = filter;
|
||||||
const showMemoFilter = Boolean(tagQuery || (duration && duration.from < duration.to) || textQuery || visibility);
|
const showMemoFilter = Boolean(tagQuery || (duration && duration.from < duration.to) || textQuery || visibility);
|
||||||
const username = params.username || extractUsernameFromName(user.name) || "";
|
const username = params.username || extractUsernameFromName(user.name || "");
|
||||||
|
|
||||||
const fetchMoreRef = useRef<HTMLSpanElement>(null);
|
const fetchMoreRef = useRef<HTMLSpanElement>(null);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user