Skip to content

Commit f03947c

Browse files
committed
マッチ画面のメッセージも統一
1 parent a1418aa commit f03947c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

web/app/friends/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Friends() {
1515
const [activeTab, setActiveTab] = useState("matching");
1616

1717
return (
18-
<div className="relative w-full">
18+
<div className="relative h-full w-full">
1919
<div className="fixed top-12 flex h-10 w-full border-gray-200 border-b bg-white">
2020
<button
2121
type="button"
@@ -43,7 +43,7 @@ export default function Friends() {
4343
</button>
4444
</div>
4545

46-
<div className="pt-10 text-center text-gray-700 text-lg">
46+
<div className="h-full pt-10 text-center text-gray-700 text-lg">
4747
{activeTab === "matching" ? <NoSSRMatchings /> : <NoSSRRequests />}
4848
</div>
4949
</div>

web/components/match/matching.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22
import { deleteMatch } from "~/api/match";
33
import { useMatched } from "~/api/user";
4+
import BackgroundText from "../common/BackgroundText";
45
import FullScreenCircularProgress from "../common/FullScreenCircularProgress";
56
import { useModal } from "../common/modal/ModalProvider";
67
import { HumanListItem } from "../human/humanListItem";
@@ -15,16 +16,14 @@ export default function Matchings() {
1516
if (error) throw error;
1617

1718
return (
18-
<div>
19+
<div className="h-full">
1920
{data && data.length === 0 && (
20-
<p className="p-4 text-lg">
21-
誰ともマッチングしていません。 リクエストを送りましょう!
22-
</p>
21+
<BackgroundText text="まだ誰ともマッチングしていません。リクエストを送りましょう!" />
2322
)}
2423
{current === "loading" ? (
2524
<FullScreenCircularProgress />
2625
) : (
27-
<ul className="mt-4 space-y-4">
26+
<ul className="space-y-4">
2827
{data?.map((matchedUser) =>
2928
matchedUser.id === 0 ? (
3029
//メモ帳

0 commit comments

Comments
 (0)