+ affichae ip du serveur

This commit is contained in:
AntoninoP 2024-07-04 11:53:39 +02:00
parent 915307a245
commit a3860dfcfd
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import styles from './serverCard.module.scss'; import styles from './serverCard.module.scss';
const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClick, onDeleteClick }) => { const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClick, onDeleteClick ,subdomain }) => {
const getStatusColor = () => { const getStatusColor = () => {
switch (status) { switch (status) {
@ -60,6 +60,7 @@ const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClic
</div> </div>
</div> </div>
<div className={styles.version}>Version: {version}</div> <div className={styles.version}>Version: {version}</div>
<div className={styles.version}>Adresse ip: {subdomain + ".servii.fr"}</div >
<button className={styles.deleteButton} onClick={handleDelete}>Supprimer</button> <button className={styles.deleteButton} onClick={handleDelete}>Supprimer</button>
</a> </a>
); );

View File

@ -86,6 +86,7 @@ const DashboardPage = ({ user }) => {
onRunClick={() => handleRunServer(server.name)} onRunClick={() => handleRunServer(server.name)}
onStopClick={() => handleStopServer(server.name)} onStopClick={() => handleStopServer(server.name)}
onDeleteClick={() => handleDeleteServer(server.name)} onDeleteClick={() => handleDeleteServer(server.name)}
subdomain={subdomain}
/> />
)) ))
)} )}