diff --git a/packages/website/astro.config.ts b/packages/website/astro.config.ts index b3ed8beb2..ada0ddb7c 100644 --- a/packages/website/astro.config.ts +++ b/packages/website/astro.config.ts @@ -1,6 +1,4 @@ import react from "@astrojs/react"; -import strings from "@blitzkit/i18n/strings/en.json"; -import favicons from "astro-favicons"; import { defineConfig } from "astro/config"; export default defineConfig({ @@ -9,6 +7,16 @@ export default defineConfig({ vite: { server: { allowedHosts: [] }, esbuild: { target: "es2022" }, + build: { cssCodeSplit: false }, + css: { + modules: { + // Short hashed class names in production to shrink HTML; the leading _ keeps names that start with a digit valid + generateScopedName: + process.env.NODE_ENV === "production" + ? "_[hash:base64:6]" + : undefined, + }, + }, }, output: "static", @@ -18,21 +26,5 @@ export default defineConfig({ build: { concurrency: 8, inlineStylesheets: "never" }, - integrations: [ - favicons({ - name: strings.common.name, - short_name: strings.common.name, - - icons: { - windows: true, - android: true, - appleIcon: true, - appleStartup: true, - favicons: true, - yandex: true, - }, - }), - - react(), - ], + integrations: [react()], }); diff --git a/packages/website/package.json b/packages/website/package.json index 51ecb457d..3f1ad3364 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -23,7 +23,6 @@ "@types/three": "^0.180.0", "@vite-pwa/astro": "^1.1.0", "astro": "^5.14.4", - "astro-favicons": "^3.1.5", "cheerio": "^1.1.2", "compare-versions": "^6.1.1", "fuzzysort": "^3.1.0", diff --git a/packages/website/src/astro/colorStyles.ts b/packages/website/src/astro/colorStyles.ts new file mode 100644 index 000000000..799c3dab2 --- /dev/null +++ b/packages/website/src/astro/colorStyles.ts @@ -0,0 +1,71 @@ +import * as colors from "@radix-ui/colors"; +import { range } from "lodash-es"; +import { + COLORS_ALPHA_ONLY, + COLOR_SCALE_LENGTH, + type AlphaOnlyColor, + type ColorAlias, +} from "../config/styles"; +import type { Color } from "../ui/color"; + +type RadixScale = Record; + +const SOLID_STEPS = range(1, COLOR_SCALE_LENGTH + 1).map(String); +const ALPHA_STEPS = SOLID_STEPS.map((step) => `a${step}`); +const ALL_STEPS = [...SOLID_STEPS, ...ALPHA_STEPS]; + +function isAlphaOnly(color: string) { + return COLORS_ALPHA_ONLY.includes(color as AlphaOnlyColor); +} + +// Only names with a dark scale, which also drops module keys like default and __esModule +export const COLORS = Object.keys(colors).filter( + (name) => `${name}Dark` in colors && !isAlphaOnly(name), +) as Color[]; + +// Black and white have no solid scale, so spreading them adds nothing +function scale(name: string) { + return colors[name as keyof typeof colors] as RadixScale | undefined; +} + +function variables( + name: string, + steps: string[], + value: (step: string) => string, +) { + return steps.map((step) => `--${name}-${step}:${value(step)};`).join(""); +} + +function reference(name: string) { + return (step: string) => `var(--${name}-${step})`; +} + +export function colorScaleStyles(color: Color | AlphaOnlyColor) { + const steps = isAlphaOnly(color) ? ALPHA_STEPS : ALL_STEPS; + const light = { ...scale(color), ...scale(`${color}A`) }; + const dark = isAlphaOnly(color) + ? light + : { ...scale(`${color}Dark`), ...scale(`${color}DarkA`) }; + + // Radix keys are the color then the step, like blue1 or blueA1 + function radix(theme: RadixScale) { + return (step: string) => theme[`${color}${step.toUpperCase()}`]; + } + + const accent = variables("accent", steps, reference(color)); + + return [ + `:root.dark{${variables(color, steps, radix(dark))}}`, + `:root.light{${variables(color, steps, radix(light))}}`, + `*[data-accent="${color}"]{${accent}}`, + ].join(""); +} + +export function colorAliasStyles(color: Color, alias: ColorAlias) { + const accent = variables("accent", ALL_STEPS, reference(alias)); + + return [ + `:root{${variables(alias, ALL_STEPS, reference(color))}}`, + `*[data-accent="${alias}"]{${accent}}`, + ].join(""); +} diff --git a/packages/website/src/components/AesonPlug/index.tsx b/packages/website/src/components/AesonPlug/index.tsx index 714586995..b619bbabb 100644 --- a/packages/website/src/components/AesonPlug/index.tsx +++ b/packages/website/src/components/AesonPlug/index.tsx @@ -1,5 +1,6 @@ import { Var } from "../../core/radix/var"; import { Heading } from "../Heading"; +import { LazyImage } from "../LazyImage"; import { Link } from "../Link"; import { Text } from "../Text"; import styles from "./index.module.css"; @@ -20,7 +21,7 @@ export function AesonPlug() { overflow: "hidden", }} > - diff --git a/packages/website/src/components/AvatarCard.tsx b/packages/website/src/components/AvatarCard.tsx index cc5d277ce..56813d099 100644 --- a/packages/website/src/components/AvatarCard.tsx +++ b/packages/website/src/components/AvatarCard.tsx @@ -5,6 +5,7 @@ import { useRef } from "react"; import { useIntersection } from "../hooks/useIntersection"; import { useLocale } from "../hooks/useLocale"; import type { MaybeSkeletonComponentProps } from "../types/maybeSkeletonComponentProps"; +import { LazyImage } from "./LazyImage"; import { Skeleton } from "./Skeleton"; import { Text } from "./Text"; @@ -46,7 +47,7 @@ export function AvatarCard(props: GalleryCardProps) { {!props.skeleton && ( <> - - {unwrap(props.avatar.name!)} +
- - + + + + + + diff --git a/packages/website/src/components/Beg/index.tsx b/packages/website/src/components/Beg/index.tsx index 7f905c616..c7e2d96fd 100644 --- a/packages/website/src/components/Beg/index.tsx +++ b/packages/website/src/components/Beg/index.tsx @@ -1,6 +1,7 @@ import { HeartFilledIcon } from "@radix-ui/react-icons"; import { Button, Em, Flex, Strong, Text } from "@radix-ui/themes"; import { donationTiers } from "../../config/donations"; +import { LazyImage } from "../LazyImage"; import styles from "./index.module.css"; export function Beg() { @@ -8,7 +9,7 @@ export function Beg() { - + We need your attention diff --git a/packages/website/src/components/Button/index.module.css b/packages/website/src/components/Button/index.module.css index 0851f11af..fe8b27f02 100644 --- a/packages/website/src/components/Button/index.module.css +++ b/packages/website/src/components/Button/index.module.css @@ -13,7 +13,7 @@ --content-size: calc(0.85 * var(--font-size-regular)); } - &[data-size="regular"] { + &:not([data-size]) { --padding: var(--space-3); --content-size: calc(1 * var(--font-size-regular)); } diff --git a/packages/website/src/components/Button/index.tsx b/packages/website/src/components/Button/index.tsx index dc85414ea..46d8db555 100644 --- a/packages/website/src/components/Button/index.tsx +++ b/packages/website/src/components/Button/index.tsx @@ -37,7 +37,7 @@ export function Button({ style, radius = "max", size = "regular", - evenPadding = false, + evenPadding, listChild, parentListChild, @@ -49,13 +49,13 @@ export function Button({ className={classNames("composable-radius", styles.button, className)} data-accent={color} data-variant={variant} - data-light-text={variant === "solid"} + data-light-text={variant === "solid" || undefined} data-radius={radius} - data-size={size} + data-size={size === "regular" ? undefined : size} data-list-child={listChild} data-parent-list-child={parentListChild} - data-high-contrast={highContrast} - data-even-padding={evenPadding} + data-high-contrast={highContrast || undefined} + data-even-padding={evenPadding || undefined} {...props} /> ); diff --git a/packages/website/src/components/Callout/index.module.css b/packages/website/src/components/Callout/index.module.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/website/src/components/Callout/index.tsx b/packages/website/src/components/Callout/index.tsx index fecd786d3..d48877019 100644 --- a/packages/website/src/components/Callout/index.tsx +++ b/packages/website/src/components/Callout/index.tsx @@ -1,10 +1,10 @@ import type { ReactNode } from "react"; -import styles from "./index.module.css"; interface Props { children: ReactNode; } +// TODO: implement callout export function Callout({ children }: Props) { - return
{children}
; + return
{children}
; } diff --git a/packages/website/src/components/ColorAlias.astro b/packages/website/src/components/ColorAlias.astro index fd73eb69e..ab2086925 100644 --- a/packages/website/src/components/ColorAlias.astro +++ b/packages/website/src/components/ColorAlias.astro @@ -1,33 +1,13 @@ --- +import type { ColorAlias } from "../config/styles"; import type { Color } from "../ui/color"; interface Props { color: Color; - alias: string; - alpha?: boolean; + alias: ColorAlias; } -const { color, alias, alpha } = Astro.props; - -let styles = ""; - -styles += ":root{"; - -for (let i = 0; i < 12; i++) { - const n = i + 1; - styles += `--${alias}-${alpha ? "a" : ""}${n}:var(--${color}-${alpha ? "a" : ""}${n});`; -} - -styles += "}"; - -styles += `*[data-accent='${alias}']{`; - -for (let i = 0; i < 12; i++) { - const n = i + 1; - styles += `--accent-${alpha ? "a" : ""}${n}:var(--${alias}-${alpha ? "a" : ""}${n});`; -} - -styles += "}"; +const { color, alias } = Astro.props; --- - + diff --git a/packages/website/src/components/ColorRanks.astro b/packages/website/src/components/ColorRanks.astro new file mode 100644 index 000000000..f05039fa7 --- /dev/null +++ b/packages/website/src/components/ColorRanks.astro @@ -0,0 +1,9 @@ +--- +import { RANKING_COLORS } from "../config/rankings"; +import ColorScale from "./ColorScale.astro"; +--- + +{RANKING_COLORS.map((color) => ( + +))} + diff --git a/packages/website/src/components/ColorScale.astro b/packages/website/src/components/ColorScale.astro index 0e9833191..ca2e8a350 100644 --- a/packages/website/src/components/ColorScale.astro +++ b/packages/website/src/components/ColorScale.astro @@ -1,54 +1,12 @@ --- -import * as colors from "@radix-ui/colors"; +import type { AlphaOnlyColor } from "../config/styles"; import type { Color } from "../ui/color"; interface Props { color: Color | AlphaOnlyColor; - alpha?: boolean; } -const ALPHA_ONLY_COLORS = ["black", "white"] as const; -type AlphaOnlyColor = (typeof ALPHA_ONLY_COLORS)[number]; - -const { color, alpha } = Astro.props; -const nameLight = `${color}${alpha ? "A" : ""}`; -const nameDark = `${color}${ - ALPHA_ONLY_COLORS.includes(color as AlphaOnlyColor) ? "" : "Dark" -}${alpha ? "A" : ""}`; -const scaleLight = colors[nameLight as keyof typeof colors]; -const scaleDark = colors[nameDark as keyof typeof colors]; - -let styles = ""; - -styles += ":root.dark{"; - -for (let i = 0; i < 12; i++) { - const n = i + 1; - const value = - scaleDark[`${color}${alpha ? "A" : ""}${n}` as keyof typeof scaleDark]; - styles += `--${color}-${alpha ? "a" : ""}${n}:${value};`; -} - -styles += "}"; -styles += ":root.light{"; - -for (let i = 0; i < 12; i++) { - const n = i + 1; - const value = - scaleLight[`${color}${alpha ? "A" : ""}${n}` as keyof typeof scaleLight]; - styles += `--${color}-${alpha ? "a" : ""}${n}:${value};`; -} - -styles += "}"; - -styles += `*[data-accent='${color}']{`; - -for (let i = 0; i < 12; i++) { - const n = i + 1; - styles += `--accent-${alpha ? "a" : ""}${n}:var(--${color}-${alpha ? "a" : ""}${n});`; -} - -styles += "}"; +const { color } = Astro.props; --- - + diff --git a/packages/website/src/components/CompareLoadout/index.tsx b/packages/website/src/components/CompareLoadout/index.tsx index c7586eed7..ed753e4ef 100644 --- a/packages/website/src/components/CompareLoadout/index.tsx +++ b/packages/website/src/components/CompareLoadout/index.tsx @@ -10,6 +10,7 @@ import { resolveTankModules } from "../../tankopedia/resolveTankModules"; import { selectModule } from "../../tankopedia/selectModule"; import { Button, type ButtonProps } from "../Button"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutConsumables } from "../LoadoutConsumables"; import { LoadoutEquipment } from "../LoadoutEquipment"; import { LoadoutModules } from "../LoadoutModules"; @@ -111,7 +112,7 @@ function Camouflage({ index }: SectionProps) { }); }} > - {strings.tanks.loadout.camouflage} @@ -128,7 +129,7 @@ function ModulesSummary(props: SummaryProps) {
{(["turret", "gun", "engine", "chassis"] as const).map((module) => ( - {strings.tanks.loadout.module_types[module]}
{selected.map((id) => ( - {unwrap( - {name} diff --git a/packages/website/src/components/CompareTankCard/index.tsx b/packages/website/src/components/CompareTankCard/index.tsx index 75774ed87..093a3a0ba 100644 --- a/packages/website/src/components/CompareTankCard/index.tsx +++ b/packages/website/src/components/CompareTankCard/index.tsx @@ -7,6 +7,7 @@ import { CompareEphemeral } from "../../stores/compareEphemeral"; import { CompareInsertionMarker } from "../CompareInsertionMarker"; import { insertionMarkers } from "../CompareInsertionMarker/constants"; import { CompareTankControl } from "../CompareTankControl"; +import { LazyImage } from "../LazyImage"; import { Table } from "../Table"; import { Text } from "../Text"; import styles from "./index.module.css"; @@ -106,7 +107,7 @@ export function CompareTankCard({ index, tank }: TankCardProps) {
- {unwrap(tank.name!)} - - {strings.tanks.custom_shell.title} @@ -193,7 +194,7 @@ export function CustomShellButton() { {strings.common.shells[label]} - {strings.common.shells[label]} {!skeleton && ( - {`${username} diff --git a/packages/website/src/components/GuessRenderer/index.module.css b/packages/website/src/components/GuessRenderer/index.module.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/website/src/components/Guesser/index.tsx b/packages/website/src/components/Guesser/index.tsx index 02baffde9..0b5496420 100644 --- a/packages/website/src/components/Guesser/index.tsx +++ b/packages/website/src/components/Guesser/index.tsx @@ -26,6 +26,7 @@ import { Card } from "../Card"; import { ClassIcon } from "../ClassIcon"; import { DropdownMenu } from "../DropdownMenu"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { TRANSITION_ANIMATION_TIME, transitionEvent } from "../Lighting"; import { SearchResults } from "../SearchResults"; import { Text } from "../Text"; @@ -122,7 +123,7 @@ export function Guesser() { key={result.id} text={unwrap(result.name!)} prefix={ - } diff --git a/packages/website/src/components/LazyImage/index.tsx b/packages/website/src/components/LazyImage/index.tsx new file mode 100644 index 000000000..e520962fd --- /dev/null +++ b/packages/website/src/components/LazyImage/index.tsx @@ -0,0 +1,5 @@ +import type { ComponentProps } from "react"; + +export function LazyImage(props: ComponentProps<"img">) { + return ; +} diff --git a/packages/website/src/components/LoadoutAugments/index.tsx b/packages/website/src/components/LoadoutAugments/index.tsx index 5fca2f93a..473f6ff27 100644 --- a/packages/website/src/components/LoadoutAugments/index.tsx +++ b/packages/website/src/components/LoadoutAugments/index.tsx @@ -18,6 +18,7 @@ import { layoutAugmentTree } from "../../tankopedia/augmentTreeLayout"; import { AUGMENT_GROUP_ID } from "../../tankopedia/augments"; import { classNames } from "../../ui/classNames"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import shared from "../LoadoutTree/index.module.css"; import { Text } from "../Text"; @@ -31,7 +32,7 @@ interface AugmentIconProps { function AugmentIcon({ icon, isCommon }: AugmentIconProps) { if (icon !== undefined) { return ( - {formatCompact(locale, xp)} - xp +
); } diff --git a/packages/website/src/components/LoadoutConsumables/index.tsx b/packages/website/src/components/LoadoutConsumables/index.tsx index 23edc3ae6..f405e8604 100644 --- a/packages/website/src/components/LoadoutConsumables/index.tsx +++ b/packages/website/src/components/LoadoutConsumables/index.tsx @@ -8,6 +8,7 @@ import { useTankCompatibility } from "../../hooks/useTankCompatibility"; import { useUnwrapper } from "../../hooks/useUnwrapper"; import { Button } from "../Button"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import { Text } from "../Text"; import { Tooltip } from "../Tooltip"; @@ -57,7 +58,7 @@ function Content({ tank, gun, selected, onToggle }: ContentProps) { disabled={disabled} onClick={() => onToggle(consumable.id)} > -
diff --git a/packages/website/src/components/LoadoutEquipment/index.tsx b/packages/website/src/components/LoadoutEquipment/index.tsx index 34e2c0cb7..853199314 100644 --- a/packages/website/src/components/LoadoutEquipment/index.tsx +++ b/packages/website/src/components/LoadoutEquipment/index.tsx @@ -9,6 +9,7 @@ import { useEquipmentPreset } from "../../hooks/useEquipmentPreset"; import { useStrings } from "../../hooks/useStrings"; import { useUnwrapper } from "../../hooks/useUnwrapper"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import { Tooltip } from "../Tooltip"; import styles from "./index.module.css"; @@ -70,7 +71,7 @@ function Slot({ slot, slotIndex, selected, onToggle }: SlotProps) { parentListChild="horizontal" onClick={() => onToggle(slotIndex, optionIndex)} > - {name} diff --git a/packages/website/src/components/LoadoutModules/index.tsx b/packages/website/src/components/LoadoutModules/index.tsx index 9e913bf81..bb46776a6 100644 --- a/packages/website/src/components/LoadoutModules/index.tsx +++ b/packages/website/src/components/LoadoutModules/index.tsx @@ -19,6 +19,7 @@ import type { TankState } from "../../tankopedia/tankState"; import { classNames } from "../../ui/classNames"; import { Discriminator } from "../Discriminator"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LinkI18n } from "../LinkI18n"; import { LoadoutSection } from "../LoadoutSection"; import shared from "../LoadoutTree/index.module.css"; @@ -220,7 +221,7 @@ function ModuleNode({ if (!isTank) onSelect(unlock); }} > - {tooltip} 0 && (
{formatCompact(locale, unlock.cost!.value)} - {unlock.cost!.type} diff --git a/packages/website/src/components/LoadoutProvisions/index.tsx b/packages/website/src/components/LoadoutProvisions/index.tsx index c2b323de0..72be76715 100644 --- a/packages/website/src/components/LoadoutProvisions/index.tsx +++ b/packages/website/src/components/LoadoutProvisions/index.tsx @@ -6,6 +6,7 @@ import { useStrings } from "../../hooks/useStrings"; import { useTankCompatibility } from "../../hooks/useTankCompatibility"; import { useUnwrapper } from "../../hooks/useUnwrapper"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import { Tooltip } from "../Tooltip"; import styles from "./index.module.css"; @@ -55,7 +56,7 @@ function Content({ disabled={disabled} onClick={() => onToggle(provision.id)} > - diff --git a/packages/website/src/components/LoadoutShells/index.tsx b/packages/website/src/components/LoadoutShells/index.tsx index 757c86977..120c9506d 100644 --- a/packages/website/src/components/LoadoutShells/index.tsx +++ b/packages/website/src/components/LoadoutShells/index.tsx @@ -3,6 +3,7 @@ import type { GunDefinition } from "@blitzkit/protos"; import { useStrings } from "../../hooks/useStrings"; import { useUnwrapper } from "../../hooks/useUnwrapper"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import { Tooltip } from "../Tooltip"; import styles from "./index.module.css"; @@ -34,7 +35,7 @@ export function LoadoutShells({ gun, selected, onSelect }: LoadoutShellsProps) { parentListChild="horizontal" onClick={() => onSelect(candidate.id)} > - {name} diff --git a/packages/website/src/components/LoadoutSkills/index.tsx b/packages/website/src/components/LoadoutSkills/index.tsx index 3aad2d158..ab0e5226c 100644 --- a/packages/website/src/components/LoadoutSkills/index.tsx +++ b/packages/website/src/components/LoadoutSkills/index.tsx @@ -9,6 +9,7 @@ import { api } from "../../api/dynamic"; import { useStrings } from "../../hooks/useStrings"; import { Discriminator } from "../Discriminator"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import styles from "./index.module.css"; @@ -49,7 +50,7 @@ function Content({ selected, onChange }: ContentProps) { } }} > - + {level > 0 && ( {romanize(level)} )} diff --git a/packages/website/src/components/LoadoutStatus/index.tsx b/packages/website/src/components/LoadoutStatus/index.tsx index 08b2ff323..35b62842e 100644 --- a/packages/website/src/components/LoadoutStatus/index.tsx +++ b/packages/website/src/components/LoadoutStatus/index.tsx @@ -5,6 +5,7 @@ import { type VehicleStatusKey, } from "../../tankopedia/tankState"; import { IconButton } from "../IconButton"; +import { LazyImage } from "../LazyImage"; import { LoadoutSection } from "../LoadoutSection"; import styles from "./index.module.css"; @@ -48,7 +49,7 @@ export function LoadoutStatus({ variant={status[key] ? "surface" : "soft"} onClick={() => onToggle(key)} > - + ))}
diff --git a/packages/website/src/components/Markdown.tsx b/packages/website/src/components/Markdown.tsx index c4ba7685f..0ff253680 100644 --- a/packages/website/src/components/Markdown.tsx +++ b/packages/website/src/components/Markdown.tsx @@ -2,6 +2,7 @@ import { Link, Table } from '@radix-ui/themes'; import MarkdownToJSX from 'markdown-to-jsx'; import type { ComponentProps } from 'react'; import { docImageUrl, isExternalImage } from '../core/blitzkit/docImages'; +import { LazyImage } from './LazyImage'; interface MarkdownProps { children: string; @@ -9,7 +10,7 @@ interface MarkdownProps { function Image({ src, ...props }: ComponentProps<'img'>) { return ( - - turret @@ -165,7 +166,7 @@ export function MixerModuleChooser({ onSelect?.(tankDefinition, turretDefinition, gun); }} > - gun diff --git a/packages/website/src/components/PerformanceTable/index.tsx b/packages/website/src/components/PerformanceTable/index.tsx index faa5c0df0..292f590f3 100644 --- a/packages/website/src/components/PerformanceTable/index.tsx +++ b/packages/website/src/components/PerformanceTable/index.tsx @@ -35,6 +35,7 @@ import { EmptyState } from "../EmptyState"; import { ExperimentIcon } from "../ExperimentIcon"; import { IncrementalLoader } from "../IncrementalLoader"; import { InlineSkeleton } from "../InlineSkeleton"; +import { LazyImage } from "../LazyImage"; import { LinkI18n } from "../LinkI18n"; import { Skeleton } from "../Skeleton"; import { Table } from "../Table"; @@ -341,7 +342,7 @@ function TankLink({ tank }: TankLinkProps) { } highContrast={tank.type === TankType.TANK_TYPE_RESEARCHABLE} > - {name} - {`Tank) => { )})`, }} > - {name} diff --git a/packages/website/src/components/TankSearchBar/index.module.css b/packages/website/src/components/TankSearchBar/index.module.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/website/src/components/TankSearchFilters/index.tsx b/packages/website/src/components/TankSearchFilters/index.tsx index a21caf112..c1c99e511 100644 --- a/packages/website/src/components/TankSearchFilters/index.tsx +++ b/packages/website/src/components/TankSearchFilters/index.tsx @@ -21,6 +21,7 @@ import { Button } from "../Button"; import { ClassIcon } from "../ClassIcon"; import { DropdownMenu } from "../DropdownMenu"; import { GunTypeIcon } from "../GunTypeIcon"; +import { LazyImage } from "../LazyImage"; import { MissingShellIcon } from "../MissingShellIcon"; import { ResearchedIcon } from "../ResearchedIcon"; import { ScienceIcon } from "../ScienceIcon"; @@ -272,7 +273,7 @@ function NationsFilter() {