Skip to content

Commit 48ec884

Browse files
committed
マッチングタブのdaisyUI移行を完了
1 parent ba3cd01 commit 48ec884

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

web/components/match/matching.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Box, List } from "@mui/material";
21
import { deleteMatch } from "~/api/match";
32
import { useMatched } from "~/api/user";
43
import FullScreenCircularProgress from "../common/FullScreenCircularProgress";
@@ -13,13 +12,8 @@ export default function Matchings() {
1312
const { openModal } = useModal();
1413

1514
return (
16-
<Box>
17-
<p
18-
style={{
19-
marginLeft: "40px",
20-
marginRight: "40px",
21-
}}
22-
>
15+
<div className="p-4">
16+
<p className="mr-10 ml-10 text-lg">
2317
{data && data.length === 0 && (
2418
<>
2519
誰ともマッチングしていません。
@@ -31,9 +25,9 @@ export default function Matchings() {
3125
{current === "loading" ? (
3226
<FullScreenCircularProgress />
3327
) : error ? (
34-
<p>Error: {error.message}</p>
28+
<p className="text-red-500">Error: {error.message}</p>
3529
) : (
36-
<List>
30+
<ul className="mt-4 space-y-4">
3731
{data?.map((matchedUser) => (
3832
<HumanListItem
3933
key={matchedUser.id}
@@ -45,8 +39,8 @@ export default function Matchings() {
4539
hasDots
4640
/>
4741
))}
48-
</List>
42+
</ul>
4943
)}
50-
</Box>
44+
</div>
5145
);
5246
}

0 commit comments

Comments
 (0)