Web: MainBar: added email address to panel text

This commit is contained in:
Nikita Gopienko 2023-04-06 10:55:16 +03:00
parent aecb015cfe
commit 0ae474d078
4 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"ClickHere": "Click here",
"ConfirmEmailDescription": "Use the link provided in the activation email. Haven't received an email with the activation link?",
"ConfirmEmailHeader": "Please activate your email to get access to the DocSpace features.",
"ConfirmEmailHeader": "Please activate your email ({{ email }}) to get access to the DocSpace features.",
"RequestActivation": "Request activation once again",
"RoomQuotaDescription": "You can archive the unnecessary rooms or <1>{{clickHere}}</1> to find a more suitable pricing plan for your DocSpace.",
"RoomQuotaHeader": "The number of rooms is about to be exceeded: {{currentValue}} / {{maxValue}}",

View File

@ -1,7 +1,7 @@
{
"ClickHere": "Кликните сюда",
"ConfirmEmailDescription": "Используйте ссылку, указанную в письме активации. Не получили письмо со ссылкой для активации?",
"ConfirmEmailHeader": "Пожалуйста, активируйте свою электронную почту, чтобы получить доступ ко всем функциям DocSpace.",
"ConfirmEmailHeader": "Пожалуйста, активируйте свою электронную почту ({{ email }}), чтобы получить доступ ко всем функциям DocSpace.",
"RequestActivation": "Запросить активацию еще раз",
"RoomQuotaDescription": "Вы можете заархивировать ненужные комнаты или <1>{{clickHere}}</1> , чтобы найти лучший тарифный план для DocSpace.",
"RoomQuotaHeader": "Количество комнат скоро будет превышено: {{currentValue}} / {{maxValue}}",

View File

@ -22,6 +22,7 @@ const Bar = (props) => {
firstLoad,
isAdmin,
userEmail,
setMaintenanceExist,
withActivationBar,
sendActivationLink,
@ -277,6 +278,7 @@ const Bar = (props) => {
/>
) : withActivationBar && barVisible.confirmEmail && tReady ? (
<ConfirmEmailBar
userEmail={userEmail}
currentColorScheme={currentColorScheme}
onLoad={onLoad}
onClick={sendActivationLinkAction}
@ -336,5 +338,6 @@ export default inject(({ auth, profileActionsStore }) => {
currentColorScheme,
setMainBarVisible,
userEmail: user.email,
};
})(withTranslation(["Profile", "Common"])(withRouter(observer(Bar))));

View File

@ -13,11 +13,12 @@ const ConfirmEmailBar = ({
onClose,
onLoad,
currentColorScheme,
userEmail,
}) => {
return (
tReady && (
<SnackBar
headerText={t("ConfirmEmailHeader")}
headerText={t("ConfirmEmailHeader", { email: userEmail })}
text={
<>
{t("ConfirmEmailDescription")}{" "}