mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
+ affichae ip du serveur
This commit is contained in:
parent
915307a245
commit
a3860dfcfd
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
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 = () => {
|
||||
switch (status) {
|
||||
@ -60,6 +60,7 @@ const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClic
|
||||
</div>
|
||||
</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>
|
||||
</a>
|
||||
);
|
||||
|
@ -86,6 +86,7 @@ const DashboardPage = ({ user }) => {
|
||||
onRunClick={() => handleRunServer(server.name)}
|
||||
onStopClick={() => handleStopServer(server.name)}
|
||||
onDeleteClick={() => handleDeleteServer(server.name)}
|
||||
subdomain={subdomain}
|
||||
/>
|
||||
))
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user