mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
translate users module
This commit is contained in:
@@ -1,26 +1,28 @@
|
||||
// @flow
|
||||
import React from "react";
|
||||
import { translate } from "react-i18next";
|
||||
import UserRow from "./UserRow";
|
||||
import type { User } from "../types/User";
|
||||
import type { UserEntry } from "../types/UserEntry";
|
||||
|
||||
type Props = {
|
||||
t: string => string,
|
||||
entries: Array<UserEntry>,
|
||||
deleteUser: User => void
|
||||
};
|
||||
|
||||
class UserTable extends React.Component<Props> {
|
||||
render() {
|
||||
const { deleteUser } = this.props;
|
||||
const { deleteUser, t } = this.props;
|
||||
const entries = this.props.entries;
|
||||
return (
|
||||
<table className="table is-hoverable is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Display Name</th>
|
||||
<th>E-Mail</th>
|
||||
<th>Admin</th>
|
||||
<th>{t("user.name")}</th>
|
||||
<th>{t("user.displayName")}</th>
|
||||
<th>{t("user.mail")}</th>
|
||||
<th>{t("user.admin")}</th>
|
||||
<th />
|
||||
<th />
|
||||
</tr>
|
||||
@@ -37,4 +39,4 @@ class UserTable extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
export default UserTable;
|
||||
export default translate("users")(UserTable);
|
||||
|
||||
Reference in New Issue
Block a user