I’m using the Login template to create a Signup page for a Social UI Kit app.
here is the
Template
here is my implementation
export default function Signup(props) {
const handleSubmit = (e) => {
e.preventDefault();
const values = Object.fromEntries(new FormData(e.target));
const data = [values.username, values.password]
props.onSubmit(data);
}
return (
<form className="Signup" onSubmit={handleSubmit}>
<h1>
Bem vindo ao
<strong style={{fontSize: 32}}>BP Money<small style={{color:'#333',fontWeight:'normal'}}>+</small></strong>
</h1>
<p>Faça seu cadastro: </p>
<label>Usuário ou email</label>
<input type="text" name="username" required />
<label>Senha</label>
<input type="password" name="password" required />
<button type="submit">Login</button>
</form>
)
};
what do I need to do in order to link my function to amity Social UI Kit ?