Skip to content

Commit

Permalink
for owner no action button in members list (#4461)
Browse files Browse the repository at this point in the history
Signed-off-by: kanhaiya04 <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
Co-authored-by: Namkyu Park <[email protected]>
  • Loading branch information
3 people authored Feb 23, 2024
1 parent a7df0a1 commit f5f7ac8
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,10 @@ export default function ActiveMembersTableView({
Cell: ({ row: { original: data } }: { row: Row<ProjectMember> }) => {
const { open: openDeleteModal, isOpen: isDeleteModalOpen, close: hideDeleteModal } = useToggleOpen();
// const { open: openEditModal, isOpen: isEditOpen, close: hideEditModal } = useToggleOpen();

if (data.role === 'Owner') return <></>;
return (
<Layout.Vertical flex={{ justifyContent: 'center', alignItems: 'flex-end' }} onClick={killEvent}>
<Popover
className={Classes.DARK}
position={Position.LEFT}
interactionKind={PopoverInteractionKind.HOVER}
disabled={data.role === 'Owner'}
>
<Popover className={Classes.DARK} position={Position.LEFT} interactionKind={PopoverInteractionKind.HOVER}>
<Button variation={ButtonVariation.ICON} icon="Options" />
<Menu style={{ backgroundColor: 'unset' }}>
{/* <RbacMenuItem icon="edit" text="Edit Role" onClick={openEditModal} permission={PermissionGroup.OWNER} /> */}
Expand Down

0 comments on commit f5f7ac8

Please sign in to comment.