website cleanup
This commit is contained in:
@@ -12,8 +12,9 @@ import {
|
||||
ChevronRight,
|
||||
Sparkles,
|
||||
} from 'lucide-react';
|
||||
import type { LeagueSummaryViewModel } from '@core/racing/application/presenters/IAllLeaguesWithCapacityAndScoringPresenter';
|
||||
import type { LeagueSummaryViewModel } from '@/lib/view-models/LeagueSummaryViewModel';
|
||||
import { getLeagueCoverClasses } from '@/lib/leagueCovers';
|
||||
import { useServices } from '@/lib/services/ServiceProvider';
|
||||
|
||||
interface LeagueCardProps {
|
||||
league: LeagueSummaryViewModel;
|
||||
@@ -71,9 +72,9 @@ function isNewLeague(createdAt: string | Date): boolean {
|
||||
}
|
||||
|
||||
export default function LeagueCard({ league, onClick }: LeagueCardProps) {
|
||||
const imageService = getImageService();
|
||||
const coverUrl = imageService.getLeagueCover(league.id);
|
||||
const logoUrl = imageService.getLeagueLogo(league.id);
|
||||
const { mediaService } = useServices();
|
||||
const coverUrl = mediaService.getLeagueCover(league.id);
|
||||
const logoUrl = mediaService.getLeagueLogo(league.id);
|
||||
|
||||
const ChampionshipIcon = getChampionshipIcon(league.scoring?.primaryChampionshipType);
|
||||
const championshipLabel = getChampionshipLabel(league.scoring?.primaryChampionshipType);
|
||||
|
||||
Reference in New Issue
Block a user