// @flow import React from "react"; import { translate } from "react-i18next"; import type { Branch } from "@scm-manager/ui-types"; import { Link } from "react-router-dom"; type Props = { baseUrl: string, t: string => string, branches: Branch[] }; class UserTable extends React.Component { render() { const { baseUrl, branches, t } = this.props; return ( {branches.map((branch, index) => { const to = `${baseUrl}/${encodeURIComponent(branch.name)}/info`; return ( ); })}
{t("branches.table.branches")}
{branch.name}
); } } export default translate("users")(UserTable);