mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
changed Select to Listbox
This commit is contained in:
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"
|
||||
|
||||
Reference in new issue
Block a user