Skip to content

Commit

Permalink
Redesign the 'broken' warning page
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 28, 2018
1 parent 5662fac commit 2a161a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion frontend/my/src/App.js
Expand Up @@ -5,6 +5,7 @@ import { Icon, notification } from "antd"
import axios from 'axios'
import qs from 'qs'

import logo from "./static/listmonk.svg"
import Layout from './Layout'
import * as cs from './constants'

Expand Down Expand Up @@ -124,7 +125,12 @@ class App extends React.PureComponent {
if(!window.CONFIG) {
return(
<div className="broken">
<h1><Icon type="frown" /> Something's not right</h1>
<p>
<img src={logo} alt="listmonk logo" />
</p>
<hr />

<h1><Icon type="warning" /> Something's not right</h1>
<p>The app configuration could not be loaded.
Please ensure that the app is running and then refresh this page.</p>
</div>
Expand Down
1 change: 0 additions & 1 deletion frontend/my/src/Layout.js
Expand Up @@ -3,7 +3,6 @@ import { Switch, Route } from "react-router-dom"
import { Link } from "react-router-dom"
import { Layout, Menu, Icon } from "antd"

// import "antd/dist/antd.css"
import logo from "./static/listmonk.svg"

// Views.
Expand Down

0 comments on commit 2a161a5

Please sign in to comment.