File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
import React , { Component } from 'react' ;
5
5
import { CSSTransition } from 'react-transition-group' ;
6
- import Gridicon from 'gridicons' ;
6
+
7
+ /**
8
+ * WordPress dependencies
9
+ */
10
+ import { IconButton } from '@wordpress/components' ;
7
11
8
12
/**
9
13
* Internal dependencies
@@ -52,14 +56,13 @@ class Pages extends Component {
52
56
< h1 className = "pages__page-title" >
53
57
{ page . heading }
54
58
</ h1 >
55
- { activePage !== 3 &&
56
- < button
59
+ { activePage === 0 &&
60
+ < IconButton
57
61
className = "pages__page-patching-button"
58
62
onClick = { ( ) => this . setActivePage ( 3 ) }
59
- title = "Apply and upload patches"
60
- >
61
- < Gridicon icon = "code" />
62
- </ button >
63
+ icon = "editor-code"
64
+ label = "Apply and upload patches"
65
+ />
63
66
}
64
67
< PreferencesButton
65
68
activePage = { activePage }
Original file line number Diff line number Diff line change 99
99
margin : 0 0 0 5px ;
100
100
}
101
101
102
- .preferences -button {
102
+ .pages__page-patching -button {
103
103
margin-left : auto ;
104
104
}
105
-
106
- & __page-patching-button {
107
- border : none ;
108
- background : none ;
109
- cursor : pointer ;
110
-
111
- .gridicon {
112
- fill : #82878C ;
113
- }
114
- }
115
105
}
You can’t perform that action at this time.
0 commit comments