Skip to content

Commit

Permalink
build: fix build (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeauchamp authored Aug 18, 2024
1 parent be7c63c commit 48bd6aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/livedocs-client/src/components/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const UserForm: React.FC<UserFormProps> = ({ user, workspaces, onSubmit }): JSX.
setFirstName(user.firstName);
setLastName(user.lastName);
setEmail(user.email);
setRole(user.role as UserRole);
// setRole(user.role as UserRole);
setWorkspaceId(user.workspaceId);
}
}, [user]);

const handleSubmit = (e: React.FormEvent): void => {
e.preventDefault();
void onSubmit({ firstName, lastName, email, role, workspaceId });
void onSubmit({ firstName, lastName, email, workspaceId });
if (!user) {
setFirstName('');
setLastName('');
Expand Down
2 changes: 1 addition & 1 deletion example/livedocs-client/src/components/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const UserList: React.FC<UserListProps> = ({ db, onEdit, onDelete }): JSX.Elemen
<TableRow key={user.id}>
<TableCell>{`${user.firstName} ${user.lastName}`}</TableCell>
<TableCell>{user.email}</TableCell>
<TableCell>{user.role}</TableCell>
{/* <TableCell>{user.role}</TableCell> */}
<TableCell>{user.workspaceId}</TableCell>
<TableCell>{new Date(user.updatedAt).toLocaleString()}</TableCell>
<TableCell>
Expand Down

0 comments on commit 48bd6aa

Please sign in to comment.