From e18b9af60eb55fae21ff4b3c8ef305ea3fff2c55 Mon Sep 17 00:00:00 2001 From: AntoninoP Date: Wed, 18 Sep 2024 18:15:49 +0200 Subject: [PATCH] ajout route creation serveur java --- src/App.jsx | 2 + src/pages/CreateServer/CreateServer.jsx | 2 +- src/pages/CreateServer/Javapick/java.jsx | 41 +++++++++++++++++++ .../CreateServer/Javapick/java.module.scss | 3 ++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 src/pages/CreateServer/Javapick/java.jsx create mode 100644 src/pages/CreateServer/Javapick/java.module.scss diff --git a/src/App.jsx b/src/App.jsx index 291f5bb..a71d6d9 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -10,6 +10,7 @@ import styles from './App.module.scss'; import Loading from './pages/Loading/loading'; import NotFoundPage from './pages/NotFoundPage/NotFoundPage'; import CreatePage from './pages/CreateServer/CreateServer'; +import Javapick from './pages/CreateServer/Javapick/java'; const App = () => { const [user, setUser] = useState(null); @@ -35,6 +36,7 @@ const App = () => { : } /> : } /> : } /> + : } /> : } /> } /> } /> diff --git a/src/pages/CreateServer/CreateServer.jsx b/src/pages/CreateServer/CreateServer.jsx index 00f4172..0782ed3 100644 --- a/src/pages/CreateServer/CreateServer.jsx +++ b/src/pages/CreateServer/CreateServer.jsx @@ -20,7 +20,7 @@ const CreateServer = ({ user }) => {
Création du serveur
De quels façon voulez-vous jouer ?
-
+
navigate('/dashboard')}>
Java Edition
Lorem ipsum dolor sit, amet consectetur adipisiciiquid, do
diff --git a/src/pages/CreateServer/Javapick/java.jsx b/src/pages/CreateServer/Javapick/java.jsx new file mode 100644 index 0000000..2726a9f --- /dev/null +++ b/src/pages/CreateServer/Javapick/java.jsx @@ -0,0 +1,41 @@ +import styles from './java.module.scss'; +import PropTypes from "prop-types"; +import Navbar from '../../../components/navbar/Navbar'; +import { useNavigate } from 'react-router-dom'; + +const Javapick = ({ user }) => { + const navigate = useNavigate(); + + + return ( +
+ navigate('/dashboard')} + /> + +
+

hello java

+
+
+ ); +}; + +Javapick.propTypes = { + user: PropTypes.oneOfType([ + PropTypes.shape({ + uid: PropTypes.string.isRequired, + displayName: PropTypes.string, + email: PropTypes.string, + photoURL: PropTypes.string, + }), + ]), + onCreateServer: PropTypes.func.isRequired, + onSubdomainUpdate: PropTypes.func.isRequired, + onCancel: PropTypes.func, + noServers: PropTypes.any +}; + +export default Javapick; diff --git a/src/pages/CreateServer/Javapick/java.module.scss b/src/pages/CreateServer/Javapick/java.module.scss new file mode 100644 index 0000000..d78367b --- /dev/null +++ b/src/pages/CreateServer/Javapick/java.module.scss @@ -0,0 +1,3 @@ +.hey{ + margin-top: 15rem; +} \ No newline at end of file