People.Client: Home: fixed translation

This commit is contained in:
Daniil Senkiv 2019-09-03 10:32:18 +03:00
parent 43cb5a34e5
commit e17d731a70
3 changed files with 4 additions and 5 deletions

View File

@ -342,7 +342,7 @@ class SectionBodyContent extends React.PureComponent {
isSelf
? {
key: "delete-profile",
label: t("PeopleResource:LblDeleteProfile"),
label: t("DeleteSelfProfile"),
onClick: this.onDeleteSelfProfileClick.bind(this, user.email)
}
: {

View File

@ -88,7 +88,7 @@ const SectionPagingContent = ({
label: t('CountPerPage', { count: 100 })
}
],
[]
[t]
);
const pageItems = useMemo(() => {

View File

@ -3,9 +3,8 @@ import { connect } from "react-redux";
import PropTypes from "prop-types";
import { withRouter } from "react-router";
import { PageLayout, RequestLoader } from "asc-web-components";
import { withTranslation } from 'react-i18next';
import { withTranslation, I18nextProvider } from 'react-i18next';
import i18n from "./i18n";
import { I18nextProvider } from "react-i18next";
import {
ArticleHeaderContent,
@ -99,7 +98,7 @@ class PureHome extends React.Component {
isHeaderChecked,
selected
} = this.state;
const t = this.props.t;
const { t } = this.props;
return (
<>
<RequestLoader