mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-13 14:46:10 -05:00
wpn image fix maybe
This commit is contained in:
@@ -31,10 +31,11 @@ const WeaponImage: React.FC<WeaponImageProps> = ({
|
||||
const wh = sizeWhMap[size]
|
||||
|
||||
useEffect(() => {
|
||||
if (!english_internal) return
|
||||
import(
|
||||
`../../assets/weapons/Wst_${english_internal[englishName]}.png`
|
||||
).then((img) => setSrc(img.default))
|
||||
}, [])
|
||||
}, [english_internal])
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -12,8 +12,6 @@ const App: React.FC = () => {
|
||||
const { colorMode } = useColorMode()
|
||||
const [themeColorFromStorage] = useLocalStorage<ThemeColor>("colorPreference")
|
||||
|
||||
console.log({ chakraTheme, colorMode })
|
||||
|
||||
const themeColor = themeColorFromStorage
|
||||
? themeColorFromStorage
|
||||
: colorMode === "light"
|
||||
|
||||
Reference in New Issue
Block a user