improvement (UI): fixes + cleanup interface - #11

This commit is contained in:
Mickael KERJEAN
2018-03-16 09:56:25 +11:00
parent 59afd3f0a5
commit 89bb4450f3
51 changed files with 3937 additions and 606 deletions

View File

@ -1,17 +1,13 @@
import React from 'react';
import { NgIf } from './';
import "./error.scss";
export const Error = (props) => {
let style = props.style || {};
style.textAlign = 'center';
style.marginTop = '50px';
style.fontSize = '25px';
style.fontStyle = 'italic';
style.fontWeight = 100;
return (
<div style={style}>
{props.err.message || "Oups something went wrong :/"}
<NgIf cond={props.err.trace !== undefined} style={{fontSize: '12px', maxWidth: '500px', margin: '10px auto 0 auto'}}>
<div className="component_error">
{props.err.message || "Oups something went wrong :/"}
<NgIf cond={props.err.trace !== undefined} className="trace">
{JSON.stringify(props.err.trace)}
</NgIf>
</div>