Web: Profile: Fixed translations.
This commit is contained in:
parent
d48e105c16
commit
b9f26343cc
@ -32,7 +32,7 @@ const Wrapper = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const SectionBodyContent = (props) => {
|
const SectionBodyContent = (props) => {
|
||||||
const { setBackupCodes, getTfaType, getBackupCodes, history } = props;
|
const { setBackupCodes, getTfaType, getBackupCodes, history, t } = props;
|
||||||
const [tfa, setTfa] = useState(false);
|
const [tfa, setTfa] = useState(false);
|
||||||
const [backupCodesCount, setBackupCodesCount] = useState(0);
|
const [backupCodesCount, setBackupCodesCount] = useState(0);
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ const SectionBodyContent = (props) => {
|
|||||||
<LoginSettings backupCodesCount={backupCodesCount} />
|
<LoginSettings backupCodesCount={backupCodesCount} />
|
||||||
)}
|
)}
|
||||||
<SocialNetworks />
|
<SocialNetworks />
|
||||||
<Subscription history={history} />
|
<Subscription history={history} t={t} />
|
||||||
<InterfaceTheme />
|
<InterfaceTheme />
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
@ -92,6 +92,7 @@ export default withRouter(
|
|||||||
"ResetApplicationDialog",
|
"ResetApplicationDialog",
|
||||||
"BackupCodesDialog",
|
"BackupCodesDialog",
|
||||||
"DeleteSelfProfileDialog",
|
"DeleteSelfProfileDialog",
|
||||||
|
"Notifications",
|
||||||
])(withPeopleLoader(SectionBodyContent)(<Loaders.ProfileView />))
|
])(withPeopleLoader(SectionBodyContent)(<Loaders.ProfileView />))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
|
||||||
import { inject, observer } from "mobx-react";
|
import { inject, observer } from "mobx-react";
|
||||||
import Text from "@docspace/components/text";
|
import Text from "@docspace/components/text";
|
||||||
import Button from "@docspace/components/button";
|
import Button from "@docspace/components/button";
|
||||||
@ -9,8 +8,7 @@ import { StyledWrapper } from "./styled-subscriptions";
|
|||||||
import config from "PACKAGE_FILE";
|
import config from "PACKAGE_FILE";
|
||||||
import { combineUrl } from "@docspace/common/utils";
|
import { combineUrl } from "@docspace/common/utils";
|
||||||
const Subscription = (props) => {
|
const Subscription = (props) => {
|
||||||
const { t } = useTranslation(["Notifications", "Common"]);
|
const { history, t } = props;
|
||||||
const { history } = props;
|
|
||||||
|
|
||||||
const onButtonClick = () => {
|
const onButtonClick = () => {
|
||||||
history.push(
|
history.push(
|
||||||
@ -25,11 +23,11 @@ const Subscription = (props) => {
|
|||||||
return (
|
return (
|
||||||
<StyledWrapper>
|
<StyledWrapper>
|
||||||
<Text fontSize="16px" fontWeight={700}>
|
<Text fontSize="16px" fontWeight={700}>
|
||||||
{t("Notifications")}
|
{t("Notifications:Notifications")}
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
<Button
|
||||||
size="normalDesktop"
|
size="small"
|
||||||
label={t("ManageNotifications")}
|
label={t("Notifications:ManageNotifications")}
|
||||||
onClick={onButtonClick}
|
onClick={onButtonClick}
|
||||||
/>
|
/>
|
||||||
</StyledWrapper>
|
</StyledWrapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user