-
- Adresse de connexion à vos serveurs :
-
- {" " + subdomain}.servii.fr
-
-
-
-
-
setSearchTerm(e.target.value)}
- className={styles.searchInput}
- />
-
-
-
-
- {favoriteServer ? (
-
- handleRunServer(favoriteServer.name)}
- onStopClick={() => handleStopServer(favoriteServer.name)}
- onDeleteClick={() => handleDeleteServer(favoriteServer.name)}
- subdomain={subdomain}
- favoriteServer={true}
- />
-
- ) : null}
-
-
-
- {serversWithoutFavorite.length > 0 ? (
- serversWithoutFavorite.filter(server =>
- server.name.toLowerCase().includes(searchTerm.toLowerCase())
- ).map((server) => (
- handleRunServer(server.name)}
- onStopClick={() => handleStopServer(server.name)}
- onDeleteClick={() => handleDeleteServer(server.name)}
- subdomain={subdomain}
- />
- ))
- ) : null}
-
+
+
+ Adresse de connexion à vos serveurs :
+
+ {" " + subdomain}.servii.fr
+
+
+
+
setSearchTerm(e.target.value)}
+ className={styles.searchInput}
+ />
+
+
+
+
+ {favoriteServer ? (
+
+ handleRunServer(favoriteServer.name)}
+ onStopClick={() => handleStopServer(favoriteServer.name)}
+ onDeleteClick={() => {
+ setServerToDelete(favoriteServer.name);
+ setModalOpen(true);
+ }}
+ subdomain={subdomain}
+ favoriteServer={true}
+ />
+
+ ) : null}
+
+
+
+ {serversWithoutFavorite.length > 0 ? (
+ serversWithoutFavorite.filter(server =>
+ server.name.toLowerCase().includes(searchTerm.toLowerCase())
+ ).map((server) => (
+ handleRunServer(server.name)}
+ onStopClick={() => handleStopServer(server.name)}
+ onDeleteClick={() => {
+ setServerToDelete(server.name);
+ setModalOpen(true);
+ }}
+ subdomain={subdomain}
+ />
+ ))
+ ) : null}
+
+
+
+
setModalOpen(false)}
+ onDelete={handleDeleteServer}
+ />