added trans for permissionRoles

This commit is contained in:
Florian Scholdei
2019-05-08 13:13:50 +02:00
parent 114e201612
commit b86d17914c
5 changed files with 36 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
// @flow
import React from "react";
import { translate } from "react-i18next";
import type { Role } from "@scm-manager/ui-types";
type Props = {
t: string => string,
roles: Role[]
};
class PermissionRoleTable extends React.Component<Props> {
render() {
const { roles, t } = this.props;
return (
<table className="card-table table is-hoverable is-fullwidth">
<thead>
<tr>
<th>{t("role.form.name")}</th>
<th>{t("role.form.permissions")}</th>
</tr>
</thead>
<tbody>
{roles.map((role, index) => {
return <p key={index}>role</p>;
})}
</tbody>
</table>
);
}
}
export default translate("config")(PermissionRoleTable);