mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-18 05:40:31 +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'
|
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 = () => {
|
const getStatusColor = () => {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
@ -47,9 +47,6 @@ const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClic
|
|||||||
<div className="tooltip"></div>
|
<div className="tooltip"></div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.buttonContainer}>
|
<div className={styles.buttonContainer}>
|
||||||
{status && (
|
|
||||||
<button className={styles.runButton} onClick={handleRun}>Démarrer</button>
|
|
||||||
)}
|
|
||||||
{!status && (
|
{!status && (
|
||||||
<button className={styles.runButton} onClick={handleRun}>Démarrer</button>
|
<button className={styles.runButton} onClick={handleRun}>Démarrer</button>
|
||||||
)}
|
)}
|
||||||
|
@ -80,7 +80,6 @@ const DashboardPage = ({ user }) => {
|
|||||||
servers.map((server, index) => (
|
servers.map((server, index) => (
|
||||||
<ServerCard
|
<ServerCard
|
||||||
key={index}
|
key={index}
|
||||||
color="#f0f0f0"
|
|
||||||
status={server.running}
|
status={server.running}
|
||||||
version={server.version}
|
version={server.version}
|
||||||
name={server.name}
|
name={server.name}
|
||||||
|
Loading…
Reference in New Issue
Block a user