react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit 3053d0cb0c - Show all commits

View File

@ -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 => {