This commit is contained in:
AntoninoP 2024-08-12 18:47:09 +02:00
parent 62d46e0505
commit 1921092a32

View File

@ -8,7 +8,6 @@ import bukkitLogo from '../../assets/frameworks/bukkit.png';
import paperLogo from '../../assets/frameworks/paper.png'; import paperLogo from '../../assets/frameworks/paper.png';
import spigotLogo from '../../assets/frameworks/spigot.png'; import spigotLogo from '../../assets/frameworks/spigot.png';
const frameworks = [ const frameworks = [
{ name: 'vanilla', logo: vanillaLogo }, { name: 'vanilla', logo: vanillaLogo },
{ name: 'bukkit', logo: bukkitLogo }, { name: 'bukkit', logo: bukkitLogo },
@ -39,8 +38,6 @@ const versions = {
], ],
}; };
const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noServers }) => { const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noServers }) => {
const [subdomain, setSubdomain] = useState(null); const [subdomain, setSubdomain] = useState(null);
const [subdomainInput, setSubdomainInput] = useState(''); const [subdomainInput, setSubdomainInput] = useState('');
@ -133,13 +130,11 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer
<div className={styles.subtitle}>Sélection du framework</div> <div className={styles.subtitle}>Sélection du framework</div>
<div className={styles.carreContainer}> <div className={styles.carreContainer}>
{frameworks.map((framework, index) => ( {frameworks.map((framework, index) => (
console.log(framework.logo.toLowerCase()),
<img <img
key={index} key={index}
className={`${styles.carre} ${selectedFramework === framework.name ? styles.selected : ''}`} className={`${styles.carre} ${selectedFramework === framework.name ? styles.selected : ''}`}
src={framework.logo.toLowerCase()} src={framework.logo}
alt={`${framework.name}`} alt={`${framework.name}`}
onClick={() => { onClick={() => {
setSelectedFramework(framework.name); setSelectedFramework(framework.name);
@ -150,7 +145,6 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noSer
</div> </div>
<div className={styles.subtitle}>Sélection de la version</div> <div className={styles.subtitle}>Sélection de la version</div>
<select <select
className={styles.select} className={styles.select}
name="version" name="version"