corrects name attribute on client
This commit is contained in:
parent
a37604fedd
commit
8ca1046bf3
@ -14,7 +14,9 @@ export const Admin = () => {
|
||||
<div className="p-4">
|
||||
<h2 className="text-3xl">Users</h2>
|
||||
{users.map((user) => (
|
||||
<div>{user.name}</div>
|
||||
<div key={user.id}>
|
||||
{user.firstName} {user.lastName}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
@ -33,7 +33,7 @@ export const Home = () => {
|
||||
|
||||
return (
|
||||
<div className="p-4">
|
||||
<h1>Welcome {user.name}</h1>
|
||||
<h1>Welcome {user.firstName}</h1>
|
||||
<Button type="button" onClick={logout}>
|
||||
Logout
|
||||
</Button>
|
||||
|
Loading…
Reference in New Issue
Block a user