From e2371844c44c99ce268ec63ca9b2babc28110b79 Mon Sep 17 00:00:00 2001 From: Chris George Date: Sun, 18 Aug 2024 07:52:35 -0400 Subject: [PATCH] Got rid of viteConfig.base --- src/components/char-select-dropdown.tsx | 3 +-- src/components/character-preview.tsx | 9 ++++----- src/pages/character.tsx | 6 +++--- src/pages/home.tsx | 3 +-- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/components/char-select-dropdown.tsx b/src/components/char-select-dropdown.tsx index ea61c981..26b591f4 100644 --- a/src/components/char-select-dropdown.tsx +++ b/src/components/char-select-dropdown.tsx @@ -4,7 +4,6 @@ import { Element } from "../consts"; import ThumbSide from "./thumb-side"; import { useNavigate } from "react-router-dom"; import { translatedCharacterInfo } from "../consts/character-info"; -const viteConfig = {base: "/genshin-helper-website"}; interface CharSelectDropdownProps { characterKey: string; @@ -48,7 +47,7 @@ const CharSelectDropdown = ({ aria-expanded={open ? "true" : "false"} startIcon={ } diff --git a/src/components/character-preview.tsx b/src/components/character-preview.tsx index c8c991ee..0d07d447 100644 --- a/src/components/character-preview.tsx +++ b/src/components/character-preview.tsx @@ -12,7 +12,6 @@ import { } from "@mui/material"; import { Link as RouterLink } from "react-router-dom"; import { TranslatedCharacterInfo } from "../consts/character-info"; -const viteConfig = { base: "/genshin-helper-website" }; // import { TranslatedTravelerInfo } from "../consts/traveler-info"; interface CharacterPreviewProps { @@ -46,7 +45,7 @@ const CharacterPreview = ({ height: "100%", opacity: 0.7, backgroundImage: `url(${!isTraveler - ? `${viteConfig.base}/characters/${characterInfo.nameId}/name-card-p.png` + ? `/genshin-helper-website/characters/${characterInfo.nameId}/name-card-p.png` : "" })`, backgroundPosition: "center", @@ -65,7 +64,7 @@ const CharacterPreview = ({ > diff --git a/src/pages/character.tsx b/src/pages/character.tsx index 8c32a7a0..db20e358 100644 --- a/src/pages/character.tsx +++ b/src/pages/character.tsx @@ -219,7 +219,7 @@ const CharacterDisplayCard = ({ > ) @@ -240,7 +240,7 @@ const CharacterDisplayCard = ({ > ); @@ -257,7 +257,7 @@ const CharacterDisplayCard = ({ ); diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 68b66f51..76b58021 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -48,7 +48,6 @@ const PageHome = () => { const brPt = useMediaQueryUp(); const toggleButtonSize = toggleButtonSizeMap[brPt]; - const viteConfig = { base: "/genshin-helper-website" } const [elementFilter, setElementFilter] = useLocalStorage("elementFilter", [ ...allElements, @@ -173,7 +172,7 @@ const PageHome = () => { aria-label={weapon} >