mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 10:07:15 +08:00 
			
		
		
		
	improvement (UI): fixes + cleanup interface - #11
This commit is contained in:
		| @ -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> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Mickael KERJEAN
					Mickael KERJEAN