cleanup (structure): update code structure

This commit is contained in:
Mickael KERJEAN
2017-06-27 17:50:27 +10:00
parent 58de01a16c
commit 0b5137846c
49 changed files with 4 additions and 7 deletions

22
client/utilities/fab.js Normal file
View 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>
)
}