mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
fix: provider place
This commit is contained in:
1 parent
697497b11e
commit
2ba00f3477
3 files changed
+4
-4
No files matched your search
@@ -213,6 +213,7 @@ export function Modules() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
|
key={unlock.id}
|
||||||
align="center"
|
align="center"
|
||||||
direction="column"
|
direction="column"
|
||||||
gap="2"
|
gap="2"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { tankDefinitions } from '../../../../core/blitzkit/tankDefinitions';
|
|||||||
import { TIER_ROMAN_NUMERALS } from '../../../../core/blitzkit/tankDefinitions/constants';
|
import { TIER_ROMAN_NUMERALS } from '../../../../core/blitzkit/tankDefinitions/constants';
|
||||||
import { tankIcon } from '../../../../core/blitzkit/tankIcon';
|
import { tankIcon } from '../../../../core/blitzkit/tankIcon';
|
||||||
import strings from '../../../../lang/en-US.json';
|
import strings from '../../../../lang/en-US.json';
|
||||||
|
import * as Duel from '../../../../stores/duel';
|
||||||
|
|
||||||
interface TankopediaLayoutProps {
|
interface TankopediaLayoutProps {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
@@ -22,7 +23,7 @@ export default async function TankopediaLayout({
|
|||||||
const description = `Statistics, armor profiles, and equipment for ${tank.name}`;
|
const description = `Statistics, armor profiles, and equipment for ${tank.name}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Duel.Provider>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
<meta property="og:title" content={title} />
|
<meta property="og:title" content={title} />
|
||||||
@@ -30,6 +31,6 @@ export default async function TankopediaLayout({
|
|||||||
<meta property="og:description" content={description} />
|
<meta property="og:description" content={description} />
|
||||||
|
|
||||||
{children}
|
{children}
|
||||||
</>
|
</Duel.Provider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -5,12 +5,10 @@ import * as TankopediaSort from '../../../stores/tankopediaSort';
|
|||||||
|
|
||||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<Duel.Provider>
|
|
||||||
<TankopediaPersistent.Provider>
|
<TankopediaPersistent.Provider>
|
||||||
<TankopediaEphemeral.Provider>
|
<TankopediaEphemeral.Provider>
|
||||||
<TankopediaSort.Provider>{children}</TankopediaSort.Provider>
|
<TankopediaSort.Provider>{children}</TankopediaSort.Provider>
|
||||||
</TankopediaEphemeral.Provider>
|
</TankopediaEphemeral.Provider>
|
||||||
</TankopediaPersistent.Provider>
|
</TankopediaPersistent.Provider>
|
||||||
</Duel.Provider>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user