Add TG banner
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
} from 'lucide-react'
|
||||
import { format } from 'date-fns'
|
||||
import { ru } from 'date-fns/locale'
|
||||
import { TelegramBotBanner } from '@/components/TelegramBotBanner'
|
||||
|
||||
export function MarathonPage() {
|
||||
const { id } = useParams<{ id: string }>()
|
||||
@@ -316,6 +317,9 @@ export function MarathonPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Telegram Bot Banner */}
|
||||
<TelegramBotBanner />
|
||||
|
||||
{/* Active event banner */}
|
||||
{marathon.status === 'active' && activeEvent?.event && (
|
||||
<EventBanner activeEvent={activeEvent} onRefresh={refreshEvent} />
|
||||
|
||||
@@ -4,6 +4,7 @@ import { marathonsApi } from '@/api'
|
||||
import type { MarathonListItem } from '@/types'
|
||||
import { NeonButton, GlassCard, StatsCard } from '@/components/ui'
|
||||
import { Plus, Users, Calendar, Loader2, Trophy, Gamepad2, ChevronRight, Hash, Sparkles } from 'lucide-react'
|
||||
import { TelegramBotBanner } from '@/components/TelegramBotBanner'
|
||||
import { format } from 'date-fns'
|
||||
import { ru } from 'date-fns/locale'
|
||||
|
||||
@@ -145,6 +146,11 @@ export function MarathonsPage() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Telegram Bot Banner */}
|
||||
<div className="mb-8">
|
||||
<TelegramBotBanner />
|
||||
</div>
|
||||
|
||||
{/* Join marathon */}
|
||||
{showJoinSection && (
|
||||
<GlassCard className="mb-8 animate-slide-in-down" variant="neon">
|
||||
|
||||
Reference in New Issue
Block a user