Update Register.js
This commit is contained in:
parent
df620ecec3
commit
3053d0cb0c
@ -5,27 +5,6 @@ import Swal from "sweetalert2";
|
|||||||
import withReactContent from "sweetalert2-react-content";
|
import withReactContent from "sweetalert2-react-content";
|
||||||
|
|
||||||
const Register = () => {
|
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 mySwal = withReactContent(Swal);
|
||||||
const { register, handleSubmit, watch, formState: { errors } } = useForm();
|
const { register, handleSubmit, watch, formState: { errors } } = useForm();
|
||||||
const onSubmit = data => {
|
const onSubmit = data => {
|
||||||
|
Loading…
Reference in New Issue
Block a user