Skip to content

Commit

Permalink
Add surname to registration form (#2313)
Browse files Browse the repository at this point in the history
* Add surname to registration form

* surname -> lastName
  • Loading branch information
thomshutt authored Sep 24, 2024
1 parent d19f3eb commit 9ab67ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/www/components/Register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {
const router = useRouter();
const [organization, setOrganization] = useState("");
const [firstName, setFirstName] = useState("");
const [lastName, setLastName] = useState("");
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [utmCampaign, setUtmCampaign] = useState("");
Expand Down Expand Up @@ -77,6 +78,7 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {
email,
password: hashedPassword,
firstName,
lastName,
organization,
});
};
Expand Down Expand Up @@ -123,6 +125,20 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {
onChange={(e) => setFirstName(e.target.value)}
/>

<TextField
size="3"
id="lastName"
css={{
width: "100%",
mb: "$2",
}}
name="lastName"
type="text"
placeholder="Last Name"
value={lastName}
onChange={(e) => setLastName(e.target.value)}
/>

<TextField
size="3"
id="organization"
Expand Down

0 comments on commit 9ab67ff

Please sign in to comment.