[~] Merge fix

This commit is contained in:
Charles Le Maux 2024-07-04 12:53:33 +01:00
parent cf9cfad925
commit 3aeb6567df
2 changed files with 1 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import styles from './serverCard.module.scss';
import paper_mc from '../../assets/frameworks/paper_mc.png'
const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClick, onDeleteClick }) => {
const ServerCard = ({status, version, link, name, onRunClick, onStopClick, onDeleteClick }) => {
const getStatusColor = () => {
switch (status) {
@ -47,9 +47,6 @@ const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClic
<div className="tooltip"></div>
</div>
<div className={styles.buttonContainer}>
{status && (
<button className={styles.runButton} onClick={handleRun}>Démarrer</button>
)}
{!status && (
<button className={styles.runButton} onClick={handleRun}>Démarrer</button>
)}

View File

@ -80,7 +80,6 @@ const DashboardPage = ({ user }) => {
servers.map((server, index) => (
<ServerCard
key={index}
color="#f0f0f0"
status={server.running}
version={server.version}
name={server.name}