diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js index e549414..0496160 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js @@ -5,27 +5,6 @@ import Swal from "sweetalert2"; import withReactContent from "sweetalert2-react-content"; const Register = () => { - -// //const [username, setUsername] = useState(""); -// //const [password, setPassword] = useState(""); - -// // const handleLogin = async (e) => { -// // e.preventDefault(); - -// // const response = await fetch(`https://localhost:7292/api/Login?rememberme=true`, { -// // method: 'POST', -// // headers: { -// // 'Accept': 'application/json', -// // 'Content-Type': 'application/json' -// // }, -// // //body: JSON.stringify({ username, password }) -// // }) - -// // Partie de display d'erreur ou de redirection (faudrait checker pour se faire un state de connexion). - -// } - -//export default function App() { const mySwal = withReactContent(Swal); const { register, handleSubmit, watch, formState: { errors } } = useForm(); const onSubmit = data => {