fix fetchmodpack images url

This commit is contained in:
Antonino 2024-10-19 23:23:38 +02:00
parent f6e525d41a
commit 141919a632

View File

@ -69,7 +69,7 @@ const Modpack = ({ user }) => {
className={`${styles.modpackCard} ${selectedModpackIndex === index ? styles.selected : ''}`} className={`${styles.modpackCard} ${selectedModpackIndex === index ? styles.selected : ''}`}
onClick={() => handleModpackClick(index)} onClick={() => handleModpackClick(index)}
> >
<img src={`https://www.servii.fr/api/modpacks/image/${modpack.image}`} alt={modpack.name} className={styles.modpackImage} /> <img src={`https://api.servii.fr/modpacks/image/${modpack.image}`} alt={modpack.name} className={styles.modpackImage} />
<h3>{modpack.name}</h3> <h3>{modpack.name}</h3>
<p>{modpack.description}</p> <p>{modpack.description}</p>
<div className={styles.tags}> <div className={styles.tags}>