- {t("Settings:SMTPSettingsDescription", { organizationName })}
+ {t("Settings:SMTPSettingsDescription", {
+ organizationName: t("Common:OrganizationName"),
+ })}
{
};
export default inject(({ settingsStore, setup }) => {
- const { organizationName, currentColorScheme, integrationSettingsUrl } =
- settingsStore;
+ const { currentColorScheme, integrationSettingsUrl } = settingsStore;
const { setInitSMTPSettings } = setup;
return {
setInitSMTPSettings,
- organizationName,
currentColorScheme,
integrationSettingsUrl,
};
diff --git a/packages/client/src/pages/PortalSettings/categories/integration/SingleSignOn/MobileView.js b/packages/client/src/pages/PortalSettings/categories/integration/SingleSignOn/MobileView.js
index 781dd27f69..91d3af0ad6 100644
--- a/packages/client/src/pages/PortalSettings/categories/integration/SingleSignOn/MobileView.js
+++ b/packages/client/src/pages/PortalSettings/categories/integration/SingleSignOn/MobileView.js
@@ -39,7 +39,7 @@ const StyledWrapper = styled.div`
gap: 20px;
`;
-const MobileView = ({ isSSOAvailable, organizationName }) => {
+const MobileView = ({ isSSOAvailable }) => {
const { t } = useTranslation(["SingleSignOn", "Settings"]);
const navigate = useNavigate();
@@ -51,7 +51,9 @@ const MobileView = ({ isSSOAvailable, organizationName }) => {
return (
{
onClickLink={onClickLink}
/>
{
serviceProviderSettings,
spMetadata,
isSSOAvailable,
- setDocumentTitle,
isInit,
currentDeviceType,
- organizationName,
} = props;
const { t } = useTranslation(["SingleSignOn", "Settings"]);
const isMobileView = currentDeviceType === DeviceType.mobile;
@@ -77,17 +76,16 @@ const SingleSignOn = (props) => {
{isMobileView ? (
-
+
) : (
<>
{
{
export default inject(
({ authStore, settingsStore, ssoStore, currentQuotaStore }) => {
- const { setDocumentTitle } = authStore;
const { isSSOAvailable } = currentQuotaStore;
- const { currentDeviceType, organizationName } = settingsStore;
+ const { currentDeviceType } = settingsStore;
const { init, serviceProviderSettings, spMetadata, isInit } = ssoStore;
@@ -126,10 +125,8 @@ export default inject(
serviceProviderSettings,
spMetadata,
isSSOAvailable,
- setDocumentTitle,
isInit,
currentDeviceType,
- organizationName,
};
},
)(observer(SingleSignOn));
diff --git a/packages/client/src/pages/PortalSettings/categories/integration/ThirdPartyServicesSettings/index.js b/packages/client/src/pages/PortalSettings/categories/integration/ThirdPartyServicesSettings/index.js
index a3b497ca99..41502d1278 100644
--- a/packages/client/src/pages/PortalSettings/categories/integration/ThirdPartyServicesSettings/index.js
+++ b/packages/client/src/pages/PortalSettings/categories/integration/ThirdPartyServicesSettings/index.js
@@ -48,6 +48,7 @@ import ConsumerModalDialog from "./sub-components/consumerModalDialog";
import ThirdPartyLoader from "./sub-components/thirdPartyLoader";
import { PRODUCT_NAME } from "@docspace/shared/constants";
+import { setDocumentTitle } from "SRC_DIR/helpers/utils";
const RootContainer = styled(Box)`
max-width: 700px;
@@ -110,7 +111,7 @@ const RootContainer = styled(Box)`
class ThirdPartyServices extends React.Component {
constructor(props) {
super(props);
- const { t, setDocumentTitle } = props;
+ const { t } = props;
setDocumentTitle(`${t("ThirdPartyAuthorization")}`);
@@ -202,7 +203,6 @@ class ThirdPartyServices extends React.Component {
theme,
currentColorScheme,
isThirdPartyAvailable,
- organizationName,
} = this.props;
const { dialogVisible, isLoading } = this.state;
const { onModalClose, onModalOpen, setConsumer, onChangeLoading } = this;
@@ -255,7 +255,7 @@ class ThirdPartyServices extends React.Component {
{t("IntegrationRequest", {
productName: PRODUCT_NAME,
- organizationName,
+ organizationName: t("Common:OrganizationName"),
})}
@@ -264,9 +269,4 @@ const PrivacyPage = (props) => {
);
};
-export default inject(({ settingsStore }) => {
- const { organizationName } = settingsStore;
- return {
- organizationName,
- };
-})(observer(PrivacyPage));
+export default observer(PrivacyPage);
diff --git a/packages/client/src/pages/Profile/Section/Body/sub-components/file-management/index.js b/packages/client/src/pages/Profile/Section/Body/sub-components/file-management/index.js
index 1b477a5674..e96aac596a 100644
--- a/packages/client/src/pages/Profile/Section/Body/sub-components/file-management/index.js
+++ b/packages/client/src/pages/Profile/Section/Body/sub-components/file-management/index.js
@@ -64,7 +64,6 @@ const FileManagement = ({
openEditorInSameTab,
setOpenEditorInSameTab,
- organizationName,
}) => {
const { t, ready } = useTranslation(["FilesSettings", "Common"]);
@@ -168,7 +167,11 @@ const FileManagement = ({
onChange={onChangeOpenEditorInSameTab}
isChecked={openEditorInSameTab}
/>
-