feat: require gender when registering
This commit is contained in:
parent
05bdc5c44c
commit
62ba89c599
@ -1,6 +1,6 @@
|
|||||||
import { jwtDecode, JwtPayload } from "jwt-decode";
|
import { jwtDecode, JwtPayload } from "jwt-decode";
|
||||||
import { ReactNode, useEffect, useState } from "react";
|
import { ReactNode, useEffect, useState } from "react";
|
||||||
import { apiAuth, baseUrl, User } from "./api";
|
import { apiAuth, baseUrl, Gender, User } from "./api";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import { Eye, EyeSlash } from "./Icons";
|
import { Eye, EyeSlash } from "./Icons";
|
||||||
import { useSession } from "./Session";
|
import { useSession } from "./Session";
|
||||||
@ -237,6 +237,21 @@ export const SetPassword = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<label>gender</label>
|
||||||
|
<select
|
||||||
|
name="gender"
|
||||||
|
required
|
||||||
|
value={player.gender}
|
||||||
|
onChange={(e) => {
|
||||||
|
setPlayer({ ...player, gender: e.target.value as Gender });
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<option value={undefined}></option>
|
||||||
|
<option value="fmp">FMP</option>
|
||||||
|
<option value="mmp">MMP</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label>number (optional)</label>
|
<label>number (optional)</label>
|
||||||
<input
|
<input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user