@@ -6,7 +6,7 @@ import { MAX_PROFILES } from "@/lib/constants";
66export default function Resources ( { profiles, closet, isAdmin } ) {
77 return (
88 < >
9- { profiles . length === 0 && closet . length === 0 ? (
9+ { profiles === 0 && closet === 0 ? (
1010 < div className = "border rounded-md md:min-h-50 p-5 my-4 bg-background" >
1111 < ResourcesEmpty />
1212 </ div >
@@ -18,13 +18,17 @@ export default function Resources({ profiles, closet, isAdmin }) {
1818 < span className = "text-lg font-bold" > 角色</ span >
1919 </ div >
2020 < p className = "text-7xl w-full text-center my-13" >
21- { profiles . length }
21+ { profiles }
2222 < span className = "text-2xl text-muted-foreground" >
2323 /{ isAdmin ? "\u221e" : MAX_PROFILES }
2424 </ span >
2525 </ p >
2626 < div className = "w-full flex flex-col-reverse flex-auto" >
27- < Link href = "profile" className = "hover:text-sky-700 text-lg text-center" >
27+ < Link
28+ prefetch = { false }
29+ href = { { pathname : "profile" } }
30+ className = "hover:text-sky-700 text-lg text-center"
31+ >
2832 管理角色
2933 < ChevronRight className = "inline" />
3034 </ Link >
@@ -36,11 +40,15 @@ export default function Resources({ profiles, closet, isAdmin }) {
3640 < span className = "text-lg font-bold" > 材质</ span >
3741 </ div >
3842 < p className = "text-7xl w-full text-center my-13" >
39- { closet . length }
43+ { closet }
4044 < span className = "text-2xl text-muted-foreground" > /∞</ span >
4145 </ p >
4246 < div className = "w-full flex flex-col-reverse flex-auto" >
43- < Link href = "closet" className = "hover:text-sky-700 text-lg text-center" >
47+ < Link
48+ prefetch = { false }
49+ href = { { pathname : "closet" } }
50+ className = "hover:text-sky-700 text-lg text-center"
51+ >
4452 管理材质
4553 < ChevronRight className = "inline" />
4654 </ Link >
0 commit comments