feat: display team weather average bar in session header
This commit is contained in:
@@ -4,7 +4,7 @@ import { auth } from '@/lib/auth';
|
|||||||
import { getWorkshop, getSessionsTabUrl } from '@/lib/workshops';
|
import { getWorkshop, getSessionsTabUrl } from '@/lib/workshops';
|
||||||
import { getWeatherSessionById } from '@/services/weather';
|
import { getWeatherSessionById } from '@/services/weather';
|
||||||
import { getUserTeams } from '@/services/teams';
|
import { getUserTeams } from '@/services/teams';
|
||||||
import { WeatherBoard, WeatherLiveWrapper, WeatherInfoPanel } from '@/components/weather';
|
import { WeatherBoard, WeatherLiveWrapper, WeatherInfoPanel, WeatherAverageBar } from '@/components/weather';
|
||||||
import { Badge } from '@/components/ui';
|
import { Badge } from '@/components/ui';
|
||||||
import { EditableWeatherTitle } from '@/components/ui/EditableWeatherTitle';
|
import { EditableWeatherTitle } from '@/components/ui/EditableWeatherTitle';
|
||||||
|
|
||||||
@@ -65,6 +65,9 @@ export default async function WeatherSessionPage({ params }: WeatherSessionPageP
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* team average — auto-refreshes via router.refresh() from useLive */}
|
||||||
|
<WeatherAverageBar entries={session.entries} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Info sur les catégories */}
|
{/* Info sur les catégories */}
|
||||||
|
|||||||
Reference in New Issue
Block a user