feat: migrate tanks search page

This commit is contained in:
tresabhi committed 2025-05-16 19:20:29 -05:00
1 parent f030fd53b1
commit a8eb751048
3 files changed
+23 -16

No files matched your search

@@ -1,12 +1,12 @@
import { PageWrapper } from '../../../../components/PageWrapper'; import { PageWrapper } from '../../../components/PageWrapper';
import { TankSearch } from '../../../../components/TankSearch'; import { TankSearch } from '../../../components/TankSearch';
import { import {
LocaleProvider, LocaleProvider,
type LocaleAcceptorProps, type LocaleAcceptorProps,
} from '../../../../hooks/useLocale'; } from '../../../hooks/useLocale';
import { App } from '../../../../stores/app'; import { App } from '../../../stores/app';
import { TankopediaPersistent } from '../../../../stores/tankopediaPersistent'; import { TankopediaPersistent } from '../../../stores/tankopediaPersistent';
import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps'; import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
export function Page({ export function Page({
locale, locale,
@@ -0,0 +1,15 @@
---
import { tankopediaTool } from '../../../constants/tools';
import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './_index';
export { getStaticPaths } from '../index.astro';
const { locale } = Astro.params;
---
<ToolLayout tool={tankopediaTool}>
<Page {locale} client:only="react">
<Page {locale} skeleton slot="fallback" />
</Page>
</ToolLayout>
@@ -1,15 +1,7 @@
--- ---
import { tankopediaTool } from '../../../../constants/tools'; import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
import ToolLayout from '../../../../layouts/ToolLayout.astro';
import { Page } from './_index';
export { getStaticPaths } from '../../index.astro'; export { getStaticPaths } from '../../index.astro';
const { locale } = Astro.params;
--- ---
<ToolLayout tool={tankopediaTool}> <LegacyRedirect path="tanks" />
<Page {locale} client:only="react">
<Page {locale} skeleton slot="fallback" />
</Page>
</ToolLayout>