Web: People: strong text

This commit is contained in:
Viktor Fomin 2021-04-12 23:33:41 +03:00
parent 47b0046b2e
commit 800b85f5c8
3 changed files with 12 additions and 5 deletions

View File

@ -50,7 +50,7 @@
"maxSizeFileError": "Maximum file size exceeded",
"editAvatar": "Edit",
"LoginSettings": "Login settings",
"TwoFactorDescription": "Two-factor authentication via code generating application was enabled for all users by cloud service administrator.",
"TwoFactorDescription": "<strong>Two-factor authentication</strong> via code generating application was enabled for all users by cloud service administrator.",
"ResetApplication": "Reset application",
"ShowBackupCodes": "Show backup codes"
}

View File

@ -50,7 +50,7 @@
"maxSizeFileError": "Превышен максимальный размер файла",
"editAvatar": "Изменить",
"LoginSettings": "Настройки входа",
"TwoFactorDescription": "Двухфакторная аутентификация через приложение для генерации кодов включена для всех пользователей администратором облачного сервиса.",
"TwoFactorDescription": "<strong>Двухфакторная аутентификация</strong> через приложение для генерации кодов включена для всех пользователей администратором облачного сервиса.",
"ResetApplication": "Сбросить приложение",
"ShowBackupCodes": "Показать резервные коды"
}

View File

@ -18,6 +18,7 @@ import {
} from "../../../../helpers/people-helpers";
import config from "../../../../../package.json";
import { AppServerConfig } from "@appserver/common/constants";
import { Trans, useTranslation } from "react-i18next";
const ProfileWrapper = styled.div`
display: flex;
@ -185,12 +186,18 @@ class SectionBodyContent extends React.PureComponent {
{isSelf && (
<ToggleWrapper>
<ToggleContent label={t("LoginSettings")} isOpen={true}>
<Text>{t("TwoFactorDescription")}</Text>
<Trans t={t} i18nKey="TwoFactorDescription" ns="Profile">
<Text>
<strong>Two-factor authentication</strong> via code generating
application was enabled for all users by cloud service
administrator.
</Text>
</Trans>
<LinkActionWrapper>
<Link type="action" className="link-action">
<Link type="action" isHovered={true} className="link-action">
{t("ResetApplication")}
</Link>
<Link type="action" className="link-action">
<Link type="action" isHovered={true} className="link-action">
{t("ShowBackupCodes")}
</Link>
</LinkActionWrapper>