diff --git a/src/components/CreateServer/CreateServer.jsx b/src/components/CreateServer/CreateServer.jsx index d7f5ef8..a36388b 100644 --- a/src/components/CreateServer/CreateServer.jsx +++ b/src/components/CreateServer/CreateServer.jsx @@ -8,6 +8,7 @@ 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 }, @@ -38,6 +39,8 @@ const versions = { ], }; + + const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noServers }) => { const [subdomain, setSubdomain] = useState(null); const [subdomainInput, setSubdomainInput] = useState(''); @@ -75,7 +78,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); } @@ -90,7 +93,7 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer {noServers ? (
Bonjour
-
Aucun serveur
+
Aucun serveur
) : ( @@ -130,28 +133,30 @@ 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
+