2018-07-10 08:38:38 +02:00
|
|
|
// @flow
|
|
|
|
|
import React from "react";
|
2018-07-10 15:18:37 +02:00
|
|
|
import DeleteUserButton from "./DeleteUserButton";
|
2018-07-10 08:38:38 +02:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
user: any
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default class UserRow extends React.Component<Props> {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{this.props.user.displayName}</td>
|
|
|
|
|
<td>{this.props.user.mail}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="checkbox" id="admin" checked={this.props.user.admin} />
|
|
|
|
|
</td>
|
2018-07-10 15:18:37 +02:00
|
|
|
<td>
|
2018-07-10 16:52:23 +02:00
|
|
|
<DeleteUserButton user={this.props.user} />
|
2018-07-10 15:18:37 +02:00
|
|
|
</td>
|
2018-07-10 08:38:38 +02:00
|
|
|
</tr>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|