Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Mar 18, 2024
1 parent 30003b6 commit ee741c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { IconX } from '@posthog/icons'
import {
LemonButton,
LemonDialog,
LemonInputSelect,
LemonSelect,
LemonSelectMultiple,
LemonSelectProps,
LemonTable,
} from '@posthog/lemon-ui'
Expand Down Expand Up @@ -396,11 +396,10 @@ function AddItemsControls(props: {
return (
<div className="flex gap-2">
<div className="min-w-[16rem]">
<LemonSelectMultiple
<LemonInputSelect
placeholder={props.placeholder}
value={items}
onChange={(newValues: string[]) => setItems(newValues)}
filterOption={true}
mode="multiple"
options={props.options}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
LemonButton,
LemonDialog,
LemonInput,
LemonInputSelect,
LemonModal,
LemonSelect,
LemonSelectMultiple,
LemonTable,
LemonTableColumns,
ProfileBubbles,
Expand Down Expand Up @@ -142,7 +142,7 @@ function RoleDetails({ roleId }: { roleId: string }): JSX.Element | null {

const onSubmit = membersToAdd.length
? () => {
addMembersToRole(role, membersToAdd)
role && addMembersToRole(role, membersToAdd)
setMembersToAdd([])
}
: undefined
Expand All @@ -162,11 +162,10 @@ function RoleDetails({ roleId }: { roleId: string }): JSX.Element | null {
<div className="flex items-center gap-2 justify-between min-h-10">
<div className="flex items-center gap-2">
<div className="min-w-[16rem]">
<LemonSelectMultiple
<LemonInputSelect
placeholder="Search for members to add..."
value={membersToAdd}
onChange={(newValues: string[]) => setMembersToAdd(newValues)}
filterOption={true}
mode="multiple"
options={usersLemonSelectOptions(
membersNotInRole.map((member) => member.user),
Expand Down

0 comments on commit ee741c5

Please sign in to comment.