mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 13:16:11 +01:00
feat: migrate urls
This commit is contained in:
1 parent
165a9cd719
commit
b90b355f8f
18 files changed
+37
-44
No files matched your search
@@ -11,7 +11,7 @@ import { TankSearch } from '../TankSearch';
|
||||
|
||||
interface TankControlProps {
|
||||
index: number;
|
||||
id: number;
|
||||
slug: string;
|
||||
}
|
||||
|
||||
const [provisionDefinitions, modelDefinitions] = await Promise.all([
|
||||
@@ -19,7 +19,7 @@ const [provisionDefinitions, modelDefinitions] = await Promise.all([
|
||||
awaitableModelDefinitions,
|
||||
]);
|
||||
|
||||
export function TankControl({ index, id }: TankControlProps) {
|
||||
export function TankControl({ index, slug }: TankControlProps) {
|
||||
const { locale } = useLocale();
|
||||
const [switchTankDialogOpen, setSwitchTankDialogOpen] = useState(false);
|
||||
const mutateCompareEphemeral = CompareEphemeral.useMutation();
|
||||
@@ -79,11 +79,7 @@ export function TankControl({ index, id }: TankControlProps) {
|
||||
</Dialog.Content>
|
||||
</Dialog.Root>
|
||||
|
||||
<LinkI18n
|
||||
locale={locale}
|
||||
href={`/tools/tankopedia/${id}`}
|
||||
target="_blank"
|
||||
>
|
||||
<LinkI18n locale={locale} href={`/tanks/${slug}`} target="_blank">
|
||||
<IconButton variant="ghost">
|
||||
<ExternalLinkIcon />
|
||||
</IconButton>
|
||||
|
||||
Reference in new issue
Block a user