-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12437 from influxdata/feat/remove-member-org
Add the ability to remove a member from org
- Loading branch information
Showing
9 changed files
with
153 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Libraries | ||
import React, {PureComponent} from 'react' | ||
|
||
// Components | ||
import {ResourceOwner} from '@influxdata/influx' | ||
import { | ||
IndexList, | ||
ConfirmationButton, | ||
ComponentSize, | ||
Alignment, | ||
} from 'src/clockface' | ||
|
||
interface Props { | ||
member: ResourceOwner | ||
onDelete: (member: ResourceOwner) => void | ||
} | ||
|
||
export default class MemberRow extends PureComponent<Props> { | ||
public render() { | ||
const {member} = this.props | ||
|
||
return ( | ||
<IndexList.Row key={member.id}> | ||
<IndexList.Cell>{member.name}</IndexList.Cell> | ||
<IndexList.Cell>{member.role}</IndexList.Cell> | ||
<IndexList.Cell revealOnHover={true} alignment={Alignment.Right}> | ||
<ConfirmationButton | ||
size={ComponentSize.ExtraSmall} | ||
text="Delete" | ||
confirmText="Confirm" | ||
onConfirm={this.handleDelete} | ||
/> | ||
</IndexList.Cell> | ||
</IndexList.Row> | ||
) | ||
} | ||
|
||
private handleDelete = () => { | ||
const {member, onDelete} = this.props | ||
onDelete(member) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.