.
This commit is contained in:
1 parent
c82bf55fe9
commit
6d62de4ec4
3 files changed
+16
-10
No files matched your search
@@ -58,8 +58,7 @@ export interface MatchDetailView {
|
|||||||
|
|
||||||
export interface AuctionPlayerView extends ParticipantView {
|
export interface AuctionPlayerView extends ParticipantView {
|
||||||
masteries: {
|
masteries: {
|
||||||
championName: string;
|
championId: number;
|
||||||
championId: string;
|
|
||||||
level: number;
|
level: number;
|
||||||
points: number;
|
points: number;
|
||||||
}[];
|
}[];
|
||||||
@@ -175,10 +174,9 @@ function mapAuctionPlayerToView(
|
|||||||
subPosition,
|
subPosition,
|
||||||
profileIconId: player.profileIconId,
|
profileIconId: player.profileIconId,
|
||||||
masteries: player.masteries.slice(0, 3).map((mastery) => ({
|
masteries: player.masteries.slice(0, 3).map((mastery) => ({
|
||||||
championName: mastery.championName ?? mastery.championId,
|
|
||||||
championId: mastery.championId,
|
championId: mastery.championId,
|
||||||
level: mastery.level,
|
level: mastery.championLevel,
|
||||||
points: mastery.points,
|
points: mastery.championPoints,
|
||||||
})),
|
})),
|
||||||
recentStats: {
|
recentStats: {
|
||||||
games: player.recentStatsSummary?.games ?? 0,
|
games: player.recentStatsSummary?.games ?? 0,
|
||||||
|
|||||||
@@ -29,10 +29,18 @@ export interface ApiTierInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiChampionMasteryEntry {
|
export interface ApiChampionMasteryEntry {
|
||||||
championId: string;
|
puuid?: string;
|
||||||
championName?: string;
|
championId: number;
|
||||||
level: number;
|
championLevel: number;
|
||||||
points: number;
|
championPoints: number;
|
||||||
|
lastPlayTime?: number;
|
||||||
|
championPointsSinceLastLevel?: number;
|
||||||
|
championPointsUntilNextLevel?: number;
|
||||||
|
markRequiredForNextLevel?: number;
|
||||||
|
tokensEarned?: number;
|
||||||
|
championSeasonMilestone?: number;
|
||||||
|
milestoneGrades?: string[];
|
||||||
|
nextSeasonMilestone?: Record<string, unknown>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiRiotRecentStatsSummary {
|
export interface ApiRiotRecentStatsSummary {
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ function PlayerSpotlight({
|
|||||||
const iconUrl = championIconUrl(ddragon, mastery.championId);
|
const iconUrl = championIconUrl(ddragon, mastery.championId);
|
||||||
const displayName =
|
const displayName =
|
||||||
championDisplayName(ddragon, mastery.championId) ??
|
championDisplayName(ddragon, mastery.championId) ??
|
||||||
mastery.championName;
|
String(mastery.championId);
|
||||||
return (
|
return (
|
||||||
<div key={mastery.championId} className="flex items-center gap-2">
|
<div key={mastery.championId} className="flex items-center gap-2">
|
||||||
<div className="w-7 h-7 bg-base-content/10 overflow-hidden shrink-0">
|
<div className="w-7 h-7 bg-base-content/10 overflow-hidden shrink-0">
|
||||||
|
|||||||
Reference in new issue
Block a user