[+] Renamed default server card for future scaling.

I want to work on brand new cards using spring
This commit is contained in:
Charles Le Maux 2024-09-16 22:45:35 +02:00
parent e774eae544
commit 8adffc3212
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import { Link } from 'react-router-dom';
import styles from './serverCard.module.scss';
import styles from './DefaultServerCard.module.scss';
import bukkit from '../../assets/frameworks/bukkit.png';
import fabric from '../../assets/frameworks/fabric.png';
@ -10,9 +10,7 @@ import vanilla from '../../assets/frameworks/vanilla.png';
import PropTypes from "prop-types";
// eslint-disable-next-line react/prop-types
const ServerCard = ({ status, version, name, framework, onRunClick, onStopClick, onDeleteClick , countPlayers , maxPlayers}) => {
const DefaultServerCard = ({ status, version, name, framework, onRunClick, onStopClick, onDeleteClick , countPlayers , maxPlayers}) => {
const getFrameworkSource = () => {
switch (framework) {
case "bukkit":
@ -89,7 +87,7 @@ const ServerCard = ({ status, version, name, framework, onRunClick, onStopClick,
};
ServerCard.propTypes = {
DefaultServerCard.propTypes = {
key: PropTypes.string,
status: PropTypes.bool,
version: PropTypes.string,
@ -102,4 +100,4 @@ ServerCard.propTypes = {
subdomain: PropTypes.string,
};
export default ServerCard;
export default DefaultServerCard;