[+] 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 { 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 bukkit from '../../assets/frameworks/bukkit.png';
import fabric from '../../assets/frameworks/fabric.png'; import fabric from '../../assets/frameworks/fabric.png';
@ -10,9 +10,7 @@ import vanilla from '../../assets/frameworks/vanilla.png';
import PropTypes from "prop-types"; import PropTypes from "prop-types";
// eslint-disable-next-line react/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 = () => { const getFrameworkSource = () => {
switch (framework) { switch (framework) {
case "bukkit": case "bukkit":
@ -89,7 +87,7 @@ const ServerCard = ({ status, version, name, framework, onRunClick, onStopClick,
}; };
ServerCard.propTypes = { DefaultServerCard.propTypes = {
key: PropTypes.string, key: PropTypes.string,
status: PropTypes.bool, status: PropTypes.bool,
version: PropTypes.string, version: PropTypes.string,
@ -102,4 +100,4 @@ ServerCard.propTypes = {
subdomain: PropTypes.string, subdomain: PropTypes.string,
}; };
export default ServerCard; export default DefaultServerCard;