From b53a48e4088fdc09329660060c6bb67eacc9fc9e Mon Sep 17 00:00:00 2001 From: Antoninop <114443287+Antoninop@users.noreply.github.com> Date: Mon, 12 Aug 2024 18:50:37 +0200 Subject: [PATCH] Revert "init test fix" --- src/components/CreateServer/CreateServer.jsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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 ? (