mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Fixed imports & i18n
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
"mail": "E-Mail",
|
"mail": "E-Mail",
|
||||||
"change-password": "Change password",
|
"change-password": "Change password",
|
||||||
"error-title": "Error",
|
"error-title": "Error",
|
||||||
"error-subtitle": "Cannot display profile"
|
"error-subtitle": "Cannot display profile",
|
||||||
|
"error": "Error",
|
||||||
|
"error-message": "'me' is undefined"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import {
|
|
||||||
Page,
|
|
||||||
Navigation,
|
|
||||||
Section
|
|
||||||
} from "../../../scm-ui-components/packages/ui-components/src/index";
|
|
||||||
import { NavLink, Route, withRouter } from "react-router-dom";
|
import { NavLink, Route, withRouter } from "react-router-dom";
|
||||||
import { getMe } from "../modules/auth";
|
import { getMe } from "../modules/auth";
|
||||||
import { compose } from "redux";
|
import { compose } from "redux";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import type { Me } from "../../../scm-ui-components/packages/ui-types/src/index";
|
import type { Me } from "@scm-manager/ui-types";
|
||||||
import { ErrorPage } from "@scm-manager/ui-components";
|
import {
|
||||||
|
ErrorPage,
|
||||||
|
Page,
|
||||||
|
Navigation,
|
||||||
|
Section
|
||||||
|
} from "@scm-manager/ui-components";
|
||||||
import ChangeUserPassword from "./ChangeUserPassword";
|
import ChangeUserPassword from "./ChangeUserPassword";
|
||||||
import ProfileInfo from "./ProfileInfo";
|
import ProfileInfo from "./ProfileInfo";
|
||||||
|
|
||||||
@@ -48,7 +48,10 @@ class Profile extends React.Component<Props, State> {
|
|||||||
<ErrorPage
|
<ErrorPage
|
||||||
title={t("profile.error-title")}
|
title={t("profile.error-title")}
|
||||||
subtitle={t("profile.error-subtitle")}
|
subtitle={t("profile.error-subtitle")}
|
||||||
error={{ name: "Error", message: "'me' is undefined" }}
|
error={{
|
||||||
|
name: t("profile.error"),
|
||||||
|
message: t("profile.error-message")
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user