Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
fix(mailbox): style error view upon internet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
kontrollanten committed Mar 4, 2019
1 parent 3913c32 commit 54753ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/MailBox/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';

export default class MailBox extends React.Component {
static propTypes = {
Expand Down Expand Up @@ -62,7 +63,7 @@ export default class MailBox extends React.Component {
render() {
if (this.props.error) {
return (
<div>
<div className={styles.ErrorView}>
<h1>Are you connected?</h1>
<p>Login page couldnt be loaded due to the following error:</p>
<p>{this.props.error.errorDescription}</p>
Expand Down
9 changes: 9 additions & 0 deletions src/renderer/components/MailBox/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.ErrorView {
width: 490px;
margin: 0 auto;
padding: 80px 0;

h1 {
text-align: center;
}
}

0 comments on commit 54753ee

Please sign in to comment.