chore: remove debug codes

This commit is contained in:
Steven 2023-11-06 23:20:26 +08:00
parent 834b58fbbd
commit 5e4493b227
4 changed files with 2 additions and 5 deletions

View File

@ -28,7 +28,6 @@ const VersionUpdateMessage = ({ inbox }: Props) => {
id: inbox.activityId,
})
.then(({ activity }) => {
console.log("activity", activity);
setActivity(activity);
});
}, [inbox.activityId]);

View File

@ -42,7 +42,7 @@ const Memo: React.FC<Props> = (props: Props) => {
const [shouldRender, setShouldRender] = useState<boolean>(lazyRendering ? false : true);
const [displayTime, setDisplayTime] = useState<string>(getRelativeTimeString(memo.displayTs));
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 referenceRelations = memo.relationList.filter((relation) => relation.type === "REFERENCE");
const commentRelations = memo.relationList.filter((relation) => relation.relatedMemoId === memo.id && relation.type === "COMMENT");

View File

@ -28,8 +28,6 @@ const RelationListView = (props: Props) => {
setRelationList(relationList.filter((relation) => relation.relatedMemoId !== memo.id));
};
console.log("referencingMemoList", referencingMemoList);
return (
<>
{referencingMemoList.length > 0 && (

View File

@ -22,7 +22,7 @@ const MemoList: React.FC = () => {
const user = useCurrentUser();
const { tag: tagQuery, duration, text: textQuery, visibility } = filter;
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);