Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,63 @@
// @flow weak
import React from 'react';
import type { Node } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
position: 'relative',
display: 'flex',
alignItems: 'center',
...theme.mixins.toolbar,
},
gutters: theme.mixins.gutters({}),
});
type ProvidedProps = {
classes: Object,
};
export type Props = {
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
*/
children?: Node,
/**
* @ignore
*/
className?: string,
/**
* If `true`, disables gutter padding.
*/
disableGutters?: boolean,
};
function Toolbar(props: ProvidedProps & Props) {
const { children, classes, className: classNameProp, disableGutters, ...other } = props;
const className = classNames(
classes.root,
{
[classes.gutters]: !disableGutters,
},
classNameProp,
);
return (
<div className={className} {...other}>
{children}
</div>
);
}
Toolbar.defaultProps = {
disableGutters: false,
};
export default withStyles(styles, { name: 'MuiToolbar' })(Toolbar);