make register button full width
This commit is contained in:
parent
9320c0d617
commit
c7b61f52ba
|
@ -113,8 +113,8 @@ const InnerForm = ({
|
|||
required
|
||||
wide />
|
||||
</Field>
|
||||
<div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, width: '1vw'}}>
|
||||
<MobileButton type="submit" text="Register with transaction" />
|
||||
<div style={{ position: 'absolute', left: 0, right: 0, bottom: 0 }}>
|
||||
<MobileButton type="submit" text="Register with transaction" style={{ width: '100%' }}/>
|
||||
</div>
|
||||
</Hidden>
|
||||
</form>
|
||||
|
|
|
@ -5,15 +5,14 @@ import Button from '@material-ui/core/Button';
|
|||
|
||||
const styles = theme => ({
|
||||
button: {
|
||||
margin: theme.spacing.unit,
|
||||
borderRadius: '4px',
|
||||
backgroundColor: 'rgb(67, 96, 223, 0.1)',
|
||||
}
|
||||
});
|
||||
const buttonText = { color: '#4360df', margin: '0 20px', fontWeight: 300 };
|
||||
const MobileButton = ({ classes, text, type }) => (
|
||||
const MobileButton = ({ classes, text, type, style }) => (
|
||||
<Fragment>
|
||||
<Button type={type} size="large" className={classNames(classes.button)} >
|
||||
<Button type={type} size="large" className={classNames(classes.button)} style={style}>
|
||||
<div style={buttonText}>{text}</div>
|
||||
</Button>
|
||||
</Fragment>
|
||||
|
|
Loading…
Reference in New Issue