last master commit

This commit is contained in:
2023-01-24 17:50:55 +01:00
parent 3cee42fd50
commit 39921148ba
6 changed files with 82 additions and 65 deletions

View File

@ -2,10 +2,10 @@ import {useContext, useState} from 'react'
import {Link} from 'react-router-dom'
import {UserCtx, UserCtxT} from '../context/UserContext';
import './Register.css';
import {registerUser} from '../services/PhpApi';
const Register = () => {
const {registerUser, wait} = useContext<UserCtxT | null>(UserCtx) as UserCtxT;
const {wait} = useContext<UserCtxT | null>(UserCtx) as UserCtxT;
const [errMsg, setErrMsg] = useState("false");
const [successMsg, setSuccessMsg] = useState("false");
const [formData, setFormData] = useState({