mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
added styled error page
This commit is contained in:
@@ -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<Props> {
|
||||
content = <Loading />;
|
||||
} else if (error) {
|
||||
// TODO add error page instead of plain notification
|
||||
content = <ErrorNotification error={error} />;
|
||||
content = (
|
||||
<ErrorPage
|
||||
title="Error"
|
||||
subtitle="Unknown error occurred"
|
||||
error={error}
|
||||
/>
|
||||
);
|
||||
} else if (!me) {
|
||||
content = <Login />;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user