mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-02-04 01:32:54 +08:00
feat: use display_name for sign up
This commit is contained in:
parent
946056c729
commit
8e080da8b1
@ -22,7 +22,7 @@ const SignUp = () => {
|
|||||||
const [loading, setLoading] = React.useState(false);
|
const [loading, setLoading] = React.useState(false);
|
||||||
const [done, setDone] = React.useState(false);
|
const [done, setDone] = React.useState(false);
|
||||||
const [userData, setUserData] = React.useState({
|
const [userData, setUserData] = React.useState({
|
||||||
name: "",
|
display_name: "",
|
||||||
email: "",
|
email: "",
|
||||||
password: "",
|
password: "",
|
||||||
});
|
});
|
||||||
@ -36,7 +36,7 @@ const SignUp = () => {
|
|||||||
email: userData.email,
|
email: userData.email,
|
||||||
password: userData.password,
|
password: userData.password,
|
||||||
options: {
|
options: {
|
||||||
data: { name: userData.name },
|
data: { display_name: userData.display_name },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(({ error }) => {
|
.then(({ error }) => {
|
||||||
@ -78,7 +78,7 @@ const SignUp = () => {
|
|||||||
<form onSubmit={onSubmit}>
|
<form onSubmit={onSubmit}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<TextInput
|
<TextInput
|
||||||
onChange={e => setUserData(d => ({ ...d, name: e.target.value }))}
|
onChange={e => setUserData(d => ({ ...d, display_name: e.target.value }))}
|
||||||
required
|
required
|
||||||
label="Name"
|
label="Name"
|
||||||
placeholder="John Doe"
|
placeholder="John Doe"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user