diff --git a/src/components/CreateServer/CreateServer.jsx b/src/components/CreateServer/CreateServer.jsx index 1fd9d71..f64f0cb 100644 --- a/src/components/CreateServer/CreateServer.jsx +++ b/src/components/CreateServer/CreateServer.jsx @@ -91,7 +91,7 @@ const CreateServer = ({ user, onCreateServer, onSubdomainUpdate }) => { value={serverVersion} onChange={(e) => setServerVersion(e.target.value)} > - + diff --git a/src/components/sidebar/Sidebar.scss b/src/components/sidebar/Sidebar.scss deleted file mode 100644 index c8797b2..0000000 --- a/src/components/sidebar/Sidebar.scss +++ /dev/null @@ -1,14 +0,0 @@ -/* src/components/Sidebar.scss */ -.sidebar { - position: fixed; - top: 0; - bottom: 0; -} - -.sidebar-left { - left: 0; -} - -.sidebar-right { - right: 0; -} diff --git a/src/components/sidebar/sidebar.jsx b/src/components/sidebar/sidebar.jsx deleted file mode 100644 index e00b7a8..0000000 --- a/src/components/sidebar/sidebar.jsx +++ /dev/null @@ -1,43 +0,0 @@ -import React, { useEffect } from 'react'; -import PropTypes from 'prop-types'; - -const Sidebar = ({ size, color, position, className, children }) => { - useEffect(() => { - document.documentElement.style.setProperty( - `--sidebar-width-${position}`, `${size}rem` - ); - }, [size, position]); - - const sidebarStyle = { - width: `${size}rem`, - backgroundColor: color, - height: '100vh', - position: 'fixed', - top: 0, - [position]: 0, - overflowY: 'auto' - }; - - return ( -
- {children} -
- ); -}; - -Sidebar.propTypes = { - size: PropTypes.number, - color: PropTypes.string, - position: PropTypes.oneOf(['left', 'right']), - className: PropTypes.string, - children: PropTypes.node -}; - -Sidebar.defaultProps = { - size: 5, - color: '#f8f9fa', - position: 'left', - className: '' -}; - -export default Sidebar; diff --git a/src/pages/DashboardPage/DashboardPage.jsx b/src/pages/DashboardPage/DashboardPage.jsx index 2372e7e..d496edb 100644 --- a/src/pages/DashboardPage/DashboardPage.jsx +++ b/src/pages/DashboardPage/DashboardPage.jsx @@ -42,7 +42,7 @@ const DashboardPage = ({ user }) => { const handleCreateServer = async (serverName, serverVersion) => { try { if (!serverName || !serverVersion) return; - await serviiApi.serverCreate(serverName, serverVersion, "paper"); + await serviiApi.serverCreate(serverName, serverVersion, "spiggot"); await loadServers(); setShowCreateServer(false); } catch (error) {