website refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { ProfileLeaguesViewData } from './ProfileLeaguesViewData';
|
||||
import type { ProfileLeaguesViewData } from '@/lib/view-data/ProfileLeaguesViewData';
|
||||
|
||||
interface ProfileLeaguesTemplateProps {
|
||||
viewData: ProfileLeaguesViewData;
|
||||
@@ -31,7 +31,7 @@ export function ProfileLeaguesTemplate({ viewData }: ProfileLeaguesTemplateProps
|
||||
</p>
|
||||
) : (
|
||||
<div className="space-y-3">
|
||||
{viewData.ownedLeagues.map((league) => (
|
||||
{viewData.ownedLeagues.map((league: ProfileLeaguesViewData['ownedLeagues'][number]) => (
|
||||
<div
|
||||
key={league.leagueId}
|
||||
className="flex items-center justify-between p-4 rounded-lg bg-deep-graphite border border-charcoal-outline"
|
||||
@@ -78,7 +78,7 @@ export function ProfileLeaguesTemplate({ viewData }: ProfileLeaguesTemplateProps
|
||||
</p>
|
||||
) : (
|
||||
<div className="space-y-3">
|
||||
{viewData.memberLeagues.map((league) => (
|
||||
{viewData.memberLeagues.map((league: ProfileLeaguesViewData['memberLeagues'][number]) => (
|
||||
<div
|
||||
key={league.leagueId}
|
||||
className="flex items-center justify-between p-4 rounded-lg bg-deep-graphite border border-charcoal-outline"
|
||||
|
||||
Reference in New Issue
Block a user