2018-07-10 22:09:19 +00:00
|
|
|
import React, { Fragment } from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import { withStyles } from '@material-ui/core/styles';
|
|
|
|
import Button from '@material-ui/core/Button';
|
|
|
|
|
|
|
|
const styles = theme => ({
|
|
|
|
button: {
|
|
|
|
borderRadius: '4px',
|
2018-07-31 01:11:20 +00:00
|
|
|
backgroundColor: 'rgba(67, 96, 223, 0.1)',
|
2018-07-10 22:09:19 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
const buttonText = { color: '#4360df', margin: '0 20px', fontWeight: 300 };
|
2018-07-16 16:56:23 +00:00
|
|
|
const MobileButton = ({ classes, text, type, style }) => (
|
2018-07-10 22:09:19 +00:00
|
|
|
<Fragment>
|
2018-07-16 16:56:23 +00:00
|
|
|
<Button type={type} size="large" className={classNames(classes.button)} style={style}>
|
2018-07-10 22:09:19 +00:00
|
|
|
<div style={buttonText}>{text}</div>
|
|
|
|
</Button>
|
|
|
|
</Fragment>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default withStyles(styles)(MobileButton);
|