diff --git a/src/assets/bedrock.png b/src/assets/bedrock.png
index f5f6fc6..e5b1cbf 100644
Binary files a/src/assets/bedrock.png and b/src/assets/bedrock.png differ
diff --git a/src/pages/CreateServer/CreateServer.jsx b/src/pages/CreateServer/CreateServer.jsx
index 6014e04..ecbf540 100644
--- a/src/pages/CreateServer/CreateServer.jsx
+++ b/src/pages/CreateServer/CreateServer.jsx
@@ -31,8 +31,8 @@ const CreateServer = ({ user }) => {
navigate('/CreateServer/bedrock')}>
-
Bedrock Edition
-
Jouez à Minecraft sur mobile, tablette et consoles, avec des performances optimisées et un accès multiplateforme.
+
Mini-jeu
+
Plongez dans Minecraft avec des cartes personnalisées et des règles uniques, en solo ou avec vos amis.
Choisir ce modèle
navigate('/CreateServer/modpack')}>
@@ -56,10 +56,6 @@ CreateServer.propTypes = {
photoURL: PropTypes.string,
}),
]),
- onCreateServer: PropTypes.func.isRequired,
- onSubdomainUpdate: PropTypes.func.isRequired,
- onCancel: PropTypes.func,
- noServers: PropTypes.any
};
export default CreateServer;
diff --git a/src/pages/CreateServer/bedrock/bedrock.jsx b/src/pages/CreateServer/bedrock/bedrock.jsx
index fc05733..36110f2 100644
--- a/src/pages/CreateServer/bedrock/bedrock.jsx
+++ b/src/pages/CreateServer/bedrock/bedrock.jsx
@@ -33,10 +33,6 @@ Bedrock.propTypes = {
photoURL: PropTypes.string,
}),
]),
- onCreateServer: PropTypes.func.isRequired,
- onSubdomainUpdate: PropTypes.func.isRequired,
- onCancel: PropTypes.func,
- noServers: PropTypes.any
};
export default Bedrock;
diff --git a/src/pages/CreateServer/modpack/modpack.jsx b/src/pages/CreateServer/modpack/modpack.jsx
index b526f85..57e8345 100644
--- a/src/pages/CreateServer/modpack/modpack.jsx
+++ b/src/pages/CreateServer/modpack/modpack.jsx
@@ -33,10 +33,6 @@ Modpack.propTypes = {
photoURL: PropTypes.string,
}),
]),
- onCreateServer: PropTypes.func.isRequired,
- onSubdomainUpdate: PropTypes.func.isRequired,
- onCancel: PropTypes.func,
- noServers: PropTypes.any
};
export default Modpack;
diff --git a/src/pages/DashboardPage/DashboardPage.jsx b/src/pages/DashboardPage/DashboardPage.jsx
index b87ca63..2b3482d 100644
--- a/src/pages/DashboardPage/DashboardPage.jsx
+++ b/src/pages/DashboardPage/DashboardPage.jsx
@@ -19,10 +19,6 @@ const DashboardPage = ({ user }) => {
const loadServers = useCallback(async () => {
try {
- const ApiResponse = await serviiApi.fetchServers();
- const data = ApiResponse.message;
- const sortedServers = data.sort((a, b) => b.running - a.running);
- setServers(sortedServers);
if (user?.uid) {
const userSubdomain = await getUserSubdomain(user.uid);
@@ -33,6 +29,13 @@ const DashboardPage = ({ user }) => {
} finally {
setLoading(false);
}
+
+ const ApiResponse = await serviiApi.fetchServers();
+ const data = ApiResponse.message;
+ const sortedServers = data.sort((a, b) => b.running - a.running);
+ setServers(sortedServers);
+
+
}, [user]);
useEffect(() => {
@@ -106,7 +109,7 @@ const DashboardPage = ({ user }) => {
Bienvenue, {user?.displayName || ' '} !
- Le sous-domaine est le nom sous lequel vos amis et vous rejoignez le serveur. Choisissez-le bien, car il n'est pas facilement modifiable !
+ Le sous-domaine est le nom sous lequel vos amis et vous rejoignez le serveur. Choisissez-le bien, car il nest pas facilement modifiable !
{
className={styles.subdomainInput}
onKeyPress={(e) => e.key === 'Enter' && handleSaveSubdomain()}
/>
-
+
Envoyer
diff --git a/src/pages/DashboardPage/DashboardPage.module.scss b/src/pages/DashboardPage/DashboardPage.module.scss
index aa20c2f..0b2fc5a 100644
--- a/src/pages/DashboardPage/DashboardPage.module.scss
+++ b/src/pages/DashboardPage/DashboardPage.module.scss
@@ -134,25 +134,13 @@ html, body {
justify-content: center;
align-items: center;
background-color: #2f2f2f;
- border: none;
- padding: .5rem 1rem;
+ padding: .80rem 1rem;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
- border-radius: 0.5rem;
+ border: none;
color: white;
transition: background-color 0.3s ease;
margin-left: 1rem;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: #2f2f2f;
- border: none;
- padding: 0.75rem 1.5rem;
- cursor: pointer;
- font-size: 1rem;
- font-weight: 600;
border-radius: 0.5rem;
- color: white;
- transition: background-color 0.3s ease;
}