mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-01 02:43:35 +08:00 
			
		
		
		
	cleanup (structure): update code structure
This commit is contained in:
		
							
								
								
									
										19
									
								
								client/utilities/error.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								client/utilities/error.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| import React from 'react'; | ||||
| import { NgIf } from './'; | ||||
|  | ||||
| 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'}}> | ||||
|             {JSON.stringify(props.err.trace)} | ||||
|           </NgIf> | ||||
|         </div> | ||||
|     ); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Mickael KERJEAN
					Mickael KERJEAN