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 ( -