fix: role input on my profile page (#612)

This commit is contained in:
Aaryan Khandelwal 2023-03-30 17:47:49 +05:30 committed by GitHub
parent ed4aae47a2
commit b65fa89cdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 44 deletions

View file

@ -11,7 +11,7 @@ import { CustomSelect, Input, PrimaryButton } from "components/ui";
// types
import { IUser } from "types";
// constant
import { USER_ROLE } from "constants/workspace";
import { USER_ROLES } from "constants/workspace";
const defaultValues: Partial<IUser> = {
first_name: "",
@ -106,7 +106,7 @@ export const UserDetails: React.FC<Props> = ({ user, setStep }) => {
input
width="w-full"
>
{USER_ROLE?.map((item) => (
{USER_ROLES.map((item) => (
<CustomSelect.Option key={item.value} value={item.value}>
{item.label}
</CustomSelect.Option>