diff --git a/scm-ui/src/components/ErrorPage.js b/scm-ui/src/components/ErrorPage.js new file mode 100644 index 0000000000..196319681c --- /dev/null +++ b/scm-ui/src/components/ErrorPage.js @@ -0,0 +1,27 @@ +//@flow +import React from "react"; +import ErrorNotification from "./ErrorNotification"; + +type Props = { + error: Error, + title: string, + subtitle: string +}; + +class ErrorPage extends React.Component { + render() { + const { title, subtitle, error } = this.props; + + return ( +
+
+

{title}

+

{subtitle}

+ +
+
+ ); + } +} + +export default ErrorPage; diff --git a/scm-ui/src/containers/App.js b/scm-ui/src/containers/App.js index 6366b8a10a..a8140a0f94 100644 --- a/scm-ui/src/containers/App.js +++ b/scm-ui/src/containers/App.js @@ -12,6 +12,7 @@ import Header from "../components/Header"; import PrimaryNavigation from "../components/PrimaryNavigation"; import Loading from "../components/Loading"; import ErrorNotification from "../components/ErrorNotification"; +import ErrorPage from "../components/ErrorPage"; type Props = { me: any, @@ -40,7 +41,13 @@ class App extends Component { content = ; } else if (error) { // TODO add error page instead of plain notification - content = ; + content = ( + + ); } else if (!me) { content = ; } else {