- {rows.map((_, index) => (
-
-
-
+
+ {Array.from({ length: limit }, (_, index) => (
+ -
+
+
+
- ))}
-
- >
+
+
+
+
+
+
+
+
+ ))}
+
);
}
@@ -335,67 +358,26 @@ function HistoryRecords({
match,
title: getHistoryMatchTitle(match.title, schedule),
href: `/match/${match._id}`,
- schedule: schedule?.compact ?? '일정 미정',
map:
match.mapId === DEFAULT_MAP_ID ? undefined : mapIdToLabel(match.mapId),
};
});
return (
- <>
-
-
-
-
- {rows.map(({ match, title, href, schedule, map }) => (
-
- |
-
- |
-
-
- {title}
-
- {map && {map} }
- |
-
-
- |
-
- {match.participants.length}명
- |
-
- ))}
-
-
-
-
- >
+
+ {rows.map(({ match, title, href, map }) => (
+ -
+ 참가 {match.participants.length}명{map && <> · {map}>}>}
+ result={}
+ resultBelowOnMobile
+ />
+
+ ))}
+
);
}
@@ -772,6 +754,7 @@ function RankingPreview({ statsPath }: { statsPath: string }) {
}
interface MatchPaginationProps {
+ label: string;
page: number;
pageCount: number;
total: number;
@@ -781,6 +764,7 @@ interface MatchPaginationProps {
}
function MatchPagination({
+ label,
page,
pageCount,
total,
@@ -789,7 +773,7 @@ function MatchPagination({
onNext,
}: MatchPaginationProps) {
return (
-
+
-
+
);
}
@@ -893,9 +877,8 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })
const hasHistoryError =
Boolean(historyMatchesQuery.error) && !historyMatchesQuery.data;
const statsPath = `/communities/${DEFAULT_COMMUNITY_ID}/internal-stats`;
- const HistorySection = showArchive ? Panel : 'section';
const UpcomingStatusHeading = showArchive ? 'p' : 'h1';
- const contentSpacing = showArchive ? 'space-y-5 pb-16' : 'space-y-8 pb-10 md:pb-16';
+ const contentSpacing = 'space-y-8 pb-10 md:pb-16';
const contentTopPadding = bannerMatch ? 'pt-10 md:pt-16' : 'pt-5 sm:pt-6';
const content = (
@@ -909,17 +892,27 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })