.
This commit is contained in:
1 parent
905bbcc6dd
commit
2472f865ad
14 files changed
+825
-18
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { Link, useNavigate, useParams } from 'react-router';
|
||||
import { useAuction, useMatch, useMe } from '../api/hooks';
|
||||
import { useAuction, useDdragonManifest, useMatch, useMe } from '../api/hooks';
|
||||
import {
|
||||
buildDefaultPreferredPositions,
|
||||
formatTierLabel,
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
} from '../api/mappers';
|
||||
import { DEFAULT_COMMUNITY_ID, useAuthUserId } from '../config';
|
||||
import { apiFetch, ApiError } from '../lib/api';
|
||||
import { profileIconUrl } from '../lib/ddragon';
|
||||
import { positionIcon, positionLabel } from '../lib/league';
|
||||
import type { Position } from '../api/types';
|
||||
|
||||
@@ -92,6 +93,7 @@ function ParticipantRow({
|
||||
index: number;
|
||||
assignedPos?: Position;
|
||||
}) {
|
||||
const { data: ddragon } = useDdragonManifest();
|
||||
return (
|
||||
<tr className="border-b border-base-content/5 last:border-b-0 hover:bg-base-content/[0.02] transition-colors">
|
||||
<td className="py-2 px-3 text-center text-[11px] text-base-content/30 w-8">
|
||||
@@ -101,7 +103,7 @@ function ParticipantRow({
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="w-7 h-7 bg-base-content/10 overflow-hidden shrink-0">
|
||||
<img
|
||||
src={`https://ddragon.leagueoflegends.com/cdn/16.7.1/img/profileicon/${participant.profileIconId}.png`}
|
||||
src={profileIconUrl(ddragon, participant.profileIconId)}
|
||||
alt=""
|
||||
className="w-full h-full object-cover"
|
||||
loading="lazy"
|
||||
|
||||
Reference in new issue
Block a user