From 8adffc3212d5a3605267ff9acfa446322a5752bd Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Mon, 16 Sep 2024 22:45:35 +0200 Subject: [PATCH] [+] Renamed default server card for future scaling. I want to work on brand new cards using spring --- .../DefaultServerCard.jsx} | 10 ++++------ .../DefaultServerCard.module.scss} | 0 2 files changed, 4 insertions(+), 6 deletions(-) rename src/components/{serverCard/serverCard.jsx => serverCards/DefaultServerCard.jsx} (91%) rename src/components/{serverCard/serverCard.module.scss => serverCards/DefaultServerCard.module.scss} (100%) diff --git a/src/components/serverCard/serverCard.jsx b/src/components/serverCards/DefaultServerCard.jsx similarity index 91% rename from src/components/serverCard/serverCard.jsx rename to src/components/serverCards/DefaultServerCard.jsx index 5aa3468..ec66a76 100644 --- a/src/components/serverCard/serverCard.jsx +++ b/src/components/serverCards/DefaultServerCard.jsx @@ -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; diff --git a/src/components/serverCard/serverCard.module.scss b/src/components/serverCards/DefaultServerCard.module.scss similarity index 100% rename from src/components/serverCard/serverCard.module.scss rename to src/components/serverCards/DefaultServerCard.module.scss