Skip to content

Commit

Permalink
refactor(chat-app): rearranged register form inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeshubham committed Aug 28, 2023
1 parent b838767 commit 948fd7b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/chat-app/web/src/pages/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const Register = () => {
<LockClosedIcon className="h-8 w-8 mb-2" /> Register
</h1>
{/* Input fields for username, password, and email */}
<Input
placeholder="Enter the email..."
type="email"
value={data.email}
onChange={handleDataChange("email")}
/>
<Input
placeholder="Enter the username..."
value={data.username}
Expand All @@ -51,12 +57,6 @@ const Register = () => {
value={data.password}
onChange={handleDataChange("password")}
/>
<Input
placeholder="Enter the email..."
type="email"
value={data.email}
onChange={handleDataChange("email")}
/>
{/* Register button */}
<Button
fullWidth
Expand Down

0 comments on commit 948fd7b

Please sign in to comment.