changed Select to Listbox

This commit is contained in:
Ollie Halliday committed 2023-03-23 16:50:29 +00:00
1 parent 52e04c18d3
commit 0990c4772c
1 file changed
+6 -5
@@ -2,7 +2,7 @@ import { isNil } from 'lodash'
import { useEffect, useState } from 'react'
import { object, string } from 'yup'
import * as Tooltip from '@radix-ui/react-tooltip'
import { Button, Form, IconMail, Input, Modal, Select } from 'ui'
import { Button, Form, IconMail, Input, Listbox, Modal } from 'ui'
import { Member, Role } from 'types'
import { checkPermissions, useParams, useStore } from 'hooks'
@@ -153,7 +153,7 @@ const InviteMemberButton = ({
<div className="space-y-4">
<div className="space-y-2">
{roles && (
<Select
<Listbox
id="role"
name="role"
label="Member role"
@@ -164,14 +164,15 @@ const InviteMemberButton = ({
}
>
{roles.map((role: any) => (
<Select.Option key={role.id} value={role.id}>
<Listbox.Option key={role.id} value={role.id} label={role.name}>
{role.name}
</Select.Option>
</Listbox.Option>
))}
</Select>
</Listbox>
)}
</div>
<Input
autoFocus
id="email"