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:
		
							
								
								
									
										22
									
								
								client/utilities/fab.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								client/utilities/fab.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| import React from 'react'; | ||||
| import { theme } from './theme'; | ||||
|  | ||||
| export const Fab = (props) => { | ||||
|     let style = {}; | ||||
|     style.height = '25px'; | ||||
|     style.width = '25px'; | ||||
|     style.padding = '13px'; | ||||
|     style.position = 'fixed'; | ||||
|     style.bottom = '20px'; | ||||
|     style.right = '20px'; | ||||
|     style.borderRadius = '50%'; | ||||
|     style.background = theme.colors.text; | ||||
|     style.boxShadow = theme.effects.shadow;  | ||||
|     style.zIndex = '1000'; | ||||
|     style.cursor = 'pointer'; | ||||
|     return ( | ||||
|         <div onClick={props.onClick} style={style}> | ||||
|           {props.children} | ||||
|         </div> | ||||
|     ) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Mickael KERJEAN
					Mickael KERJEAN