From d92d85a8bce98eeafe22c9365013fac0e6877be2 Mon Sep 17 00:00:00 2001 From: AntoninoP Date: Mon, 12 Aug 2024 19:06:57 +0200 Subject: [PATCH] tentative de fix pls --- src/components/CreateServer/CreateServer.jsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/components/CreateServer/CreateServer.jsx b/src/components/CreateServer/CreateServer.jsx index 2a757d6..d9352d3 100644 --- a/src/components/CreateServer/CreateServer.jsx +++ b/src/components/CreateServer/CreateServer.jsx @@ -3,17 +3,12 @@ import styles from './CreateServer.module.scss'; import { getUserSubdomain } from "../../service/firebase"; import serviiApi from "../../service/api.tsx"; import PropTypes from "prop-types"; -import vanillaLogo from '../../assets/frameworks/vanilla.png'; -import bukkitLogo from '../../assets/frameworks/bukkit.png'; -import paperLogo from '../../assets/frameworks/paper.png'; -import spigotLogo from '../../assets/frameworks/spigot.png'; - const frameworks = [ - { name: 'vanilla', logo: vanillaLogo }, - { name: 'bukkit', logo: bukkitLogo }, - { name: 'spigot', logo: spigotLogo }, - { name: 'paper', logo: paperLogo }, + { name: 'vanilla', logo: new URL('../../assets/frameworks/vanilla.png', import.meta.url).href }, + { name: 'bukkit', logo: new URL('../../assets/frameworks/bukkit.png', import.meta.url).href }, + { name: 'spigot', logo: new URL('../../assets/frameworks/spigot.png', import.meta.url).href }, + { name: 'paper', logo: new URL('../../assets/frameworks/paper.png', import.meta.url).href }, ]; const versions = {