diff --git a/src/components/CreateServer/CreateServer.jsx b/src/components/CreateServer/CreateServer.jsx index a36388b..d7f5ef8 100644 --- a/src/components/CreateServer/CreateServer.jsx +++ b/src/components/CreateServer/CreateServer.jsx @@ -8,7 +8,6 @@ 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 }, @@ -39,8 +38,6 @@ const versions = { ], }; - - const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noServers }) => { const [subdomain, setSubdomain] = useState(null); const [subdomainInput, setSubdomainInput] = useState(''); @@ -78,7 +75,7 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer const handleCreateServer = async () => { try { - await onCreateServer(serverName, serverVersion , selectedFramework); + await onCreateServer(serverName, serverVersion, selectedFramework); } catch (error) { console.error('Error creating server:', error); } @@ -93,7 +90,7 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer {noServers ? (
Bonjour
-
Aucun serveur
+
Aucun serveur
) : ( @@ -133,30 +130,28 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer
Sélection du framework
- - {frameworks.map((framework, index) => ( + {frameworks.map((framework, index) => ( {`${framework.name} { setSelectedFramework(framework.name); - setServerVersion(''); + setServerVersion(''); }} /> ))}
Sélection de la version
-