Revert "init test fix"

This commit is contained in:
Antoninop 2024-08-12 18:50:37 +02:00 committed by GitHub
parent ac73fa7920
commit b53a48e408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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('');
@ -130,12 +133,13 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer
<div className={styles.subtitle}>Sélection du framework</div>
<div className={styles.carreContainer}>
{frameworks.map((framework, index) => (
<img
key={index}
className={`${styles.carre} ${selectedFramework === framework.name ? styles.selected : ''}`}
src={framework.logo}
alt={`${framework.name}`}
src={framework.logo.toLowerCase()}
alt={`${framework.name} Logo`}
onClick={() => {
setSelectedFramework(framework.name);
setServerVersion('');
@ -145,6 +149,7 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer
</div>
<div className={styles.subtitle}>Sélection de la version</div>
<select
className={styles.select}
name="version"