ens-usernames/app/ui/components/MobileButton.js

22 lines
685 B
JavaScript
Raw Normal View History

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 };
const MobileButton = ({ classes, text, type, style, ...props }) => (
2018-07-10 22:09:19 +00:00
<Fragment>
<Button type={type} size="large" className={classNames(classes.button)} style={style} {...props} >
2018-07-10 22:09:19 +00:00
<div style={buttonText}>{text}</div>
</Button>
</Fragment>
);
export default withStyles(styles)(MobileButton);