Merge branch 'main' into dev

This commit is contained in:
TrèsAbhi committed 2024-06-15 21:09:37 -05:00
commit 2d6b8105d2
33 files changed
+916 -390

No files matched your search

+6 -5
View File
@@ -1,9 +1,10 @@
'use client';
import { useEffect } from 'react';
import { MidSectionAd } from '../../../../components/MidSectionAd';
import { AdMidSectionResponsive } from '../../../../components/AdMidSectionResponsive';
import PageWrapper from '../../../../components/PageWrapper';
import { assignDuelMember } from '../../../../core/blitzkit/assignDuelMember';
import { useAdExempt } from '../../../../hooks/useAdExempt';
import { mutateDuel, useDuel } from '../../../../stores/duel';
import { mutateTankopediaTemporary } from '../../../../stores/tankopedia';
import { HistorySection } from './components/HistorySection';
@@ -15,6 +16,7 @@ import { VideoSection } from './components/VideoSection';
export default function Page({ params }: { params: { id: string } }) {
const initialId = parseInt(params.id);
const assigned = useDuel((state) => state.assigned);
const exempt = useAdExempt();
useEffect(() => {
assignDuelMember('both', initialId);
@@ -75,14 +77,13 @@ export default function Page({ params }: { params: { id: string } }) {
{assigned && (
<>
<HeroSection />
<MidSectionAd />
{!exempt && <AdMidSectionResponsive />}
<CharacteristicsSection />
<MidSectionAd />
{!exempt && <AdMidSectionResponsive />}
<TechTreeSection />
<VideoSection />
<MidSectionAd />
{!exempt && <AdMidSectionResponsive />}
<HistorySection />
{/* <TankopediaSeparator /> */}
</>
)}
</PageWrapper>