website cleanup
This commit is contained in:
@@ -304,18 +304,6 @@ export default function SponsorBillingPage() {
|
||||
);
|
||||
}
|
||||
|
||||
const handleSetDefault = (methodId: string) => {
|
||||
setPaymentMethods(methods =>
|
||||
methods.map(m => ({ ...m, isDefault: m.id === methodId }))
|
||||
);
|
||||
};
|
||||
|
||||
const handleRemoveMethod = (methodId: string) => {
|
||||
if (confirm('Remove this payment method?')) {
|
||||
setPaymentMethods(methods => methods.filter(m => m.id !== methodId));
|
||||
}
|
||||
};
|
||||
|
||||
const handleSetDefault = (methodId: string) => {
|
||||
// In a real app, this would call an API
|
||||
console.log('Setting default payment method:', methodId);
|
||||
|
||||
@@ -89,7 +89,8 @@ export default function SponsorLeagueDetailPage() {
|
||||
);
|
||||
}
|
||||
|
||||
const config = data.league.tierConfig;
|
||||
const league = data.league;
|
||||
const config = league.tierConfig;
|
||||
|
||||
return (
|
||||
<div className="max-w-7xl mx-auto py-8 px-4">
|
||||
@@ -99,7 +100,7 @@ export default function SponsorLeagueDetailPage() {
|
||||
<ChevronRight className="w-4 h-4" />
|
||||
<Link href="/sponsor/leagues" className="hover:text-white transition-colors">Leagues</Link>
|
||||
<ChevronRight className="w-4 h-4" />
|
||||
<span className="text-white">{league.name}</span>
|
||||
<span className="text-white">{data.league.name}</span>
|
||||
</div>
|
||||
|
||||
{/* Header */}
|
||||
@@ -107,7 +108,7 @@ export default function SponsorLeagueDetailPage() {
|
||||
<div className="flex-1">
|
||||
<div className="flex items-center gap-3 mb-2">
|
||||
<span className={`px-3 py-1 rounded-full text-sm font-medium capitalize ${config.bgColor} ${config.color} border ${config.border}`}>
|
||||
⭐ {league.tier}
|
||||
⭐ {data.league.tier}
|
||||
</span>
|
||||
<span className="px-3 py-1 rounded-full text-sm font-medium bg-performance-green/10 text-performance-green">
|
||||
Active Season
|
||||
|
||||
Reference in New Issue
Block a user