1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

improve buttons

This commit is contained in:
sveisvei 2016-12-05 23:06:25 +01:00
parent 4116a854c8
commit fe97342846

View File

@ -1,5 +1,5 @@
import React, { Component, PropTypes } from 'react';
import { Textfield, Button, Switch } from 'react-mdl';
import { Textfield, Button, Switch, Icon } from 'react-mdl';
import StrategiesSection from './strategies-section-container';
const trim = (value) => {
@ -78,9 +78,15 @@ class AddFeatureToggleComponent extends Component {
removeStrategy={removeStrategy} />
<br />
<Button type="submit" raised primary>{editmode ? 'Update' : 'Create'}</Button>
<Button type="submit" ripple raised primary icon="add">
<Icon name="add" />&nbsp;&nbsp;&nbsp;
{editmode ? 'Update' : 'Create'}
</Button>
&nbsp;
<Button type="cancel" raised onClick={onCancel}>Cancel</Button>
<Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}>
<Icon name="cancel" />&nbsp;&nbsp;&nbsp;
Cancel
</Button>
</form>
);
}