Skip to content

Commit

Permalink
chore: remove user id and role admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheusafonsouza committed Jan 10, 2025
1 parent 92514f0 commit fb5350f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/hooks/useApi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ const useApi = () => {
} }> => {
return new Promise((resolve) => {
api
.post('/auth/signin', data)
.post('/auth/signin', {
...data,
role: 'admin',
})
.then((res) => resolve(res))
.catch((err) => resolve(getDefaultErrorUseAPIMessage(err)));
});
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Users/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function Users() {
<Table.Root size="lg" variant='outline' striped showColumnBorder>
<Table.Header>
<Table.Row>
<Table.ColumnHeader>id</Table.ColumnHeader>
<Table.ColumnHeader>Nome</Table.ColumnHeader>
<Table.ColumnHeader>Sobrenome</Table.ColumnHeader>
<Table.ColumnHeader>Telefone</Table.ColumnHeader>
Expand All @@ -50,7 +49,6 @@ function Users() {
<Table.Body>
{users.map((user) => (
<Table.Row key={user.id}>
<Table.Cell>{user.id}</Table.Cell>
<Table.Cell>{user.firstName}</Table.Cell>
<Table.Cell>{user.lastName}</Table.Cell>
<Table.Cell>{user.phone}</Table.Cell>
Expand Down

0 comments on commit fb5350f

Please sign in to comment.