mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
[~] Merge fix
This commit is contained in:
parent
cf9cfad925
commit
3aeb6567df
@ -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>
|
||||
)}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user