1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import { Grid , Row , ButtonGroup , Button } from 'patternfly-react' ;
4
+ import { ButtonToolbar } from 'react-bootstrap' ;
4
5
import Tagging from './tagging' ;
5
6
6
7
class TaggingWithButtons extends React . Component {
@@ -22,33 +23,39 @@ class TaggingWithButtons extends React.Component {
22
23
selectedTagValue = { this . props . selectedTagValue }
23
24
/>
24
25
< Row className = "pull-right" >
25
- < ButtonGroup >
26
- < Button
27
- onClick = { this . props . cancelButton . onClick }
28
- href = { this . props . cancelButton . href }
29
- disabled = { this . props . cancelButton . disabled }
30
- type = { this . props . cancelButton . type }
31
- >
32
- { this . props . cancelButton . description }
33
- </ Button >
34
- { this . props . showReset &&
26
+ < ButtonToolbar >
27
+ < ButtonGroup >
35
28
< Button
36
- onClick = { this . props . resetButton . onClick }
37
- href = { this . props . resetButton . href }
38
- disabled = { this . props . resetButton . disabled }
39
- type = { this . props . resetButton . type }
29
+ onClick = { this . props . saveButton . onClick }
30
+ href = { this . props . saveButton . href }
31
+ disabled = { this . props . saveButton . disabled }
32
+ type = { this . props . saveButton . type }
40
33
>
41
- { this . props . resetButton . description }
42
- </ Button > }
43
- < Button
44
- onClick = { this . props . saveButton . onClick }
45
- href = { this . props . saveButton . href }
46
- disabled = { this . props . saveButton . disabled }
47
- type = { this . props . saveButton . type }
48
- >
49
- { this . props . saveButton . description }
50
- </ Button >
51
- </ ButtonGroup >
34
+ { this . props . saveButton . description }
35
+ </ Button >
36
+ </ ButtonGroup >
37
+ < ButtonGroup >
38
+ { this . props . showReset &&
39
+ < Button
40
+ onClick = { this . props . resetButton . onClick }
41
+ href = { this . props . resetButton . href }
42
+ disabled = { this . props . resetButton . disabled }
43
+ type = { this . props . resetButton . type }
44
+ >
45
+ { this . props . resetButton . description }
46
+ </ Button > }
47
+ </ ButtonGroup >
48
+ < ButtonGroup >
49
+ < Button
50
+ onClick = { this . props . cancelButton . onClick }
51
+ href = { this . props . cancelButton . href }
52
+ disabled = { this . props . cancelButton . disabled }
53
+ type = { this . props . cancelButton . type }
54
+ >
55
+ { this . props . cancelButton . description }
56
+ </ Button >
57
+ </ ButtonGroup >
58
+ </ ButtonToolbar >
52
59
</ Row >
53
60
</ Grid >
54
61
) ;
0 commit comments