format code.

This commit is contained in:
2025-07-04 15:45:43 +08:00
parent 1decddb810
commit 17663a9691

View File

@@ -1,4 +1,4 @@
import { useNavigate, useParams } from "react-router"; import { useParams } from "react-router";
import { CommentWithResource, User } from "../network/models"; import { CommentWithResource, User } from "../network/models";
import { network } from "../network/network"; import { network } from "../network/network";
import showToast from "../components/toast"; import showToast from "../components/toast";
@@ -6,8 +6,6 @@ import { useEffect, useState } from "react";
import ResourcesView from "../components/resources_view"; import ResourcesView from "../components/resources_view";
import Loading from "../components/loading"; import Loading from "../components/loading";
import Pagination from "../components/pagination"; import Pagination from "../components/pagination";
import { MdOutlineArrowRight } from "react-icons/md";
import { ImageGrid } from "../components/image.tsx";
import { CommentTile } from "../components/comment_tile.tsx"; import { CommentTile } from "../components/comment_tile.tsx";
export default function UserPage() { export default function UserPage() {
@@ -175,7 +173,9 @@ function CommentsList({
return ( return (
<> <>
{comments.map((comment) => { {comments.map((comment) => {
return <CommentTile elevation="high" comment={comment} key={comment.id} />; return (
<CommentTile elevation="high" comment={comment} key={comment.id} />
);
})} })}
</> </>
); );