mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
[+] Renamed default server card for future scaling.
I want to work on brand new cards using spring
This commit is contained in:
parent
e774eae544
commit
8adffc3212
@ -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;
|
Loading…
Reference in New Issue
Block a user