From 94d13b5b0e71721b371c19c6aa4a0077726f15fe Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 8 Sep 2023 17:36:41 -0700 Subject: [PATCH] Fix: Static assets with base path (github.io) --- src/components/sections/extras/ExtraSelection.jsx | 2 +- src/components/sections/results/ResultCharacter.jsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/sections/extras/ExtraSelection.jsx b/src/components/sections/extras/ExtraSelection.jsx index ea7579e06..dc5f9516b 100644 --- a/src/components/sections/extras/ExtraSelection.jsx +++ b/src/components/sections/extras/ExtraSelection.jsx @@ -49,7 +49,7 @@ const useStyles = makeStyles()((theme) => ({ fontWeight: 200, }, item: { - cursor: 'url(/images/cursors/green.png),pointer', + cursor: `url(${import.meta.env.BASE_URL}images/cursors/green.png),pointer`, }, })); diff --git a/src/components/sections/results/ResultCharacter.jsx b/src/components/sections/results/ResultCharacter.jsx index be4afd202..e71cb32aa 100644 --- a/src/components/sections/results/ResultCharacter.jsx +++ b/src/components/sections/results/ResultCharacter.jsx @@ -192,7 +192,9 @@ export default function ResultCharacter({ character, weapons, skills, assumedBuf imageElement={ Profession }