Skip to content

Commit

Permalink
chore: fix pnpm lock and UserForm ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotot committed Sep 17, 2024
1 parent a9589d3 commit eaed570
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { TextField, Button, Box, Autocomplete, MenuItem, Chip } from "@mui/material";
import type { User } from "@org/lib-api-client";
import type { User, Role } from "@org/lib-api-client";

export type UserFormProps = {
value: User;
Expand Down Expand Up @@ -34,7 +34,7 @@ export function UserForm({ value, onChange, onSubmit }: UserFormProps) {
id="tags-outlined"
options={["admin", "user"]}
getOptionLabel={option => option}
onChange={(_, newValue) => mutate({ roles: newValue })}
onChange={(_, newValue) => mutate({ roles: newValue as Role[] })}
value={value.roles}
disableCloseOnSelect
filterSelectedOptions
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit eaed570

Please sign in to comment.