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 isSelf
? { ? {
key: "delete-profile", key: "delete-profile",
label: t("PeopleResource:LblDeleteProfile"), label: t("DeleteSelfProfile"),
onClick: this.onDeleteSelfProfileClick.bind(this, user.email) onClick: this.onDeleteSelfProfileClick.bind(this, user.email)
} }
: { : {

View File

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

View File

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