File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11"use client" ;
22import { deleteMatch } from "~/api/match" ;
33import { useMatched } from "~/api/user" ;
4+ import BackgroundText from "../common/BackgroundText" ;
45import FullScreenCircularProgress from "../common/FullScreenCircularProgress" ;
56import { useModal } from "../common/modal/ModalProvider" ;
67import { 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 //メモ帳
You can’t perform that action at this time.
0 commit comments