diff --git a/packages/website/src/pages/[...locale]/tier-list/_index.tsx b/packages/website/src/pages/[...locale]/tier-list/_index.tsx new file mode 100644 index 000000000..050077a76 --- /dev/null +++ b/packages/website/src/pages/[...locale]/tier-list/_index.tsx @@ -0,0 +1,36 @@ +import { PageWrapper } from '../../../components/PageWrapper'; +import { FilterControl } from '../../../components/TankSearch/components/FilterControl'; +import { TierListControls } from '../../../components/TierList/Controls'; +import { TierListTable } from '../../../components/TierList/Table'; +import { TierListTiles } from '../../../components/TierList/Tiles'; +import { URLManager } from '../../../components/TierList/URLManager'; +import { + LocaleProvider, + type LocaleAcceptorProps, +} from '../../../hooks/useLocale'; +import { TankopediaPersistent } from '../../../stores/tankopediaPersistent'; +import { TierList } from '../../../stores/tierList'; + +export function Page({ locale }: LocaleAcceptorProps) { + return ( + + + + + + + + ); +} + +function Content() { + return ( + + + + + + + + ); +} diff --git a/packages/website/src/pages/[...locale]/tier-list/index.astro b/packages/website/src/pages/[...locale]/tier-list/index.astro new file mode 100644 index 000000000..164d63e46 --- /dev/null +++ b/packages/website/src/pages/[...locale]/tier-list/index.astro @@ -0,0 +1,13 @@ +--- +import { tierListTool } from '../../../constants/tools'; +import ToolLayout from '../../../layouts/ToolLayout.astro'; +import { Page } from './_index'; + +export { getStaticPaths } from '../index.astro'; + +const { locale } = Astro.params; +--- + + + + diff --git a/packages/website/src/pages/[...locale]/tools/tier-list/_index.tsx b/packages/website/src/pages/[...locale]/tools/tier-list/_index.tsx deleted file mode 100644 index c068da096..000000000 --- a/packages/website/src/pages/[...locale]/tools/tier-list/_index.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { PageWrapper } from '../../../../components/PageWrapper'; -import { FilterControl } from '../../../../components/TankSearch/components/FilterControl'; -import { TierListControls } from '../../../../components/TierList/Controls'; -import { TierListTable } from '../../../../components/TierList/Table'; -import { TierListTiles } from '../../../../components/TierList/Tiles'; -import { URLManager } from '../../../../components/TierList/URLManager'; -import { - LocaleProvider, - type LocaleAcceptorProps, -} from '../../../../hooks/useLocale'; -import { TankopediaPersistent } from '../../../../stores/tankopediaPersistent'; -import { TierList } from '../../../../stores/tierList'; - -export function Page({ locale }: LocaleAcceptorProps) { - return ( - - - - - - - - ); -} - -function Content() { - return ( - - - - - - - - ); -} diff --git a/packages/website/src/pages/[...locale]/tools/tier-list/index.astro b/packages/website/src/pages/[...locale]/tools/tier-list/index.astro index e22b87824..22a2f78bd 100644 --- a/packages/website/src/pages/[...locale]/tools/tier-list/index.astro +++ b/packages/website/src/pages/[...locale]/tools/tier-list/index.astro @@ -1,13 +1,7 @@ --- -import { tierListTool } from '../../../../constants/tools'; -import ToolLayout from '../../../../layouts/ToolLayout.astro'; -import { Page } from './_index'; +import LegacyRedirect from '../../../../components/LegacyRedirect.astro'; export { getStaticPaths } from '../../index.astro'; - -const { locale } = Astro.params; --- - - - +