fix: the last of the errors

This commit is contained in:
TrèsAbhi committed 2025-10-22 18:42:51 -05:00
1 parent f802b997c0
commit ac768d0897
13 files changed
+40 -30

No files matched your search

@@ -1,7 +1,7 @@
import { CaretRightIcon } from "@radix-ui/react-icons";
import { Box, Flex, Link, Text } from "@radix-ui/themes";
import { Var } from "../../../core/radix/var";
import type { TankGuide } from "../../../pages/[...locale]/tanks/[slug]/index.astro";
import type { TankGuide } from "../../../types/tankGuide";
interface Props {
guide: TankGuide;
@@ -48,7 +48,9 @@ export function GuideSection({ guide }: Props) {
height="100%"
left="0"
style={{
background: `linear-gradient(${Var("gray-a1")}, ${Var("gray-1")})`,
background: `linear-gradient(${Var("gray-a1")}, ${Var(
"gray-1"
)})`,
}}
/>
</Flex>
@@ -17,7 +17,7 @@ import {
import { Duel } from "../../../../stores/duel";
import { Tankopedia } from "../../../../stores/tankopedia";
import type { MaybeSkeletonComponentProps } from "../../../../types/maybeSkeletonComponentProps";
import type { TankGuide } from "./index.astro";
import type { TankGuide } from "../../../../types/tankGuide";
type PageProps = MaybeSkeletonComponentProps &
LocaleAcceptorProps & {
@@ -20,6 +20,7 @@ import { tankCharacteristics } from "../../../../core/blitzkit/tankCharacteristi
import { getStrings } from "../../../../core/i18n/getStrings";
import BaseLayout from "../../../../layouts/BaseLayout.astro";
import { genericDefaultEquipmentMatrix } from "../../../../stores/duel/constants";
import type { TankGuide } from "../../../../types/tankGuide";
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
import { Page } from "./_index";
@@ -100,12 +101,6 @@ const description = literals(
}
);
export interface TankGuide {
url: string;
description?: string;
image?: string;
}
const guideUrl = `${assertSecret(import.meta.env.PUBLIC_GUIDE_WEBSITE)}/${tank.slug}`;
let guide: TankGuide | undefined = undefined;
const guideResponse = await fetch(guideUrl);
+3 -3
View File
@@ -1,6 +1,6 @@
import { enableMapSet } from 'immer';
import { Varuna } from 'varuna';
import { tierListRows } from '../components/TierList/Table/constants';
import { enableMapSet } from "immer";
import { Varuna } from "varuna";
import { tierListRows } from "../components/TierList/Table/constants";
export interface TierList {
dragging: boolean;
+5
View File
@@ -0,0 +1,5 @@
export interface TankGuide {
url: string;
description?: string;
image?: string;
}