diff --git a/packages/website/src/pages/[...locale]/tools/performance/_index.tsx b/packages/website/src/pages/[...locale]/performance/_index.tsx similarity index 51% rename from packages/website/src/pages/[...locale]/tools/performance/_index.tsx rename to packages/website/src/pages/[...locale]/performance/_index.tsx index c2029990f..98bf345d8 100644 --- a/packages/website/src/pages/[...locale]/tools/performance/_index.tsx +++ b/packages/website/src/pages/[...locale]/performance/_index.tsx @@ -1,15 +1,15 @@ -import { PageWrapper } from '../../../../components/PageWrapper'; -import { PerformanceInfo } from '../../../../components/Performance/PerformanceInfo'; -import { PlayerCountControl } from '../../../../components/Performance/PlayerCountControl'; -import { TankTable } from '../../../../components/Performance/Table'; -import { FilterControl } from '../../../../components/TankSearch/components/FilterControl'; +import { PageWrapper } from '../../../components/PageWrapper'; +import { PerformanceInfo } from '../../../components/Performance/PerformanceInfo'; +import { PlayerCountControl } from '../../../components/Performance/PlayerCountControl'; +import { TankTable } from '../../../components/Performance/Table'; +import { FilterControl } from '../../../components/TankSearch/components/FilterControl'; import { LocaleProvider, type LocaleAcceptorProps, -} from '../../../../hooks/useLocale'; -import { TankPerformanceEphemeral } from '../../../../stores/tankPerformanceEphemeral'; -import { TankPerformanceSort } from '../../../../stores/tankPerformanceSort'; -import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps'; +} from '../../../hooks/useLocale'; +import { TankPerformanceEphemeral } from '../../../stores/tankPerformanceEphemeral'; +import { TankPerformanceSort } from '../../../stores/tankPerformanceSort'; +import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps'; type PageProps = MaybeSkeletonComponentProps & LocaleAcceptorProps; diff --git a/packages/website/src/pages/[...locale]/performance/index.astro b/packages/website/src/pages/[...locale]/performance/index.astro new file mode 100644 index 000000000..5f7eb7f16 --- /dev/null +++ b/packages/website/src/pages/[...locale]/performance/index.astro @@ -0,0 +1,19 @@ +--- +import ToolOpenGraph from '../../../components/ToolOpenGraph.astro'; +import { performanceTool } from '../../../constants/tools'; +import BaseLayout from '../../../layouts/BaseLayout.astro'; +import type { getStaticPaths } from '../index.astro'; +import { Page } from './_index'; + +export { getStaticPaths } from '../index.astro'; + +const { locale } = Astro.params; +--- + + + + + + + + diff --git a/packages/website/src/pages/[...locale]/tools/performance/index.astro b/packages/website/src/pages/[...locale]/tools/performance/index.astro index f561bb676..39880ab6d 100644 --- a/packages/website/src/pages/[...locale]/tools/performance/index.astro +++ b/packages/website/src/pages/[...locale]/tools/performance/index.astro @@ -1,18 +1,7 @@ --- -import ToolOpenGraph from '../../../../components/ToolOpenGraph.astro'; -import { performanceTool } from '../../../../constants/tools'; -import BaseLayout from '../../../../layouts/BaseLayout.astro'; -import { Page } from './_index'; +import LegacyRedirect from '../../../../components/LegacyRedirect.astro'; export { getStaticPaths } from '../../index.astro'; - -const { locale } = Astro.params; --- - - - - - - - +