File tree 2 files changed +12
-2
lines changed
client/modules/IDE/components
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import PropTypes from 'prop-types';
2
2
import React from 'react' ;
3
3
import { domOnlyProps } from '../../../utils/reduxFormUtils' ;
4
4
5
+ import Button from '../../../common/Button' ;
6
+
5
7
class NewFileForm extends React . Component {
6
8
constructor ( props ) {
7
9
super ( props ) ;
@@ -33,7 +35,10 @@ class NewFileForm extends React.Component {
33
35
{ ...domOnlyProps ( name ) }
34
36
ref = { ( element ) => { this . fileName = element ; } }
35
37
/>
36
- < input type = "submit" value = "Add File" aria-label = "add file" />
38
+ < Button
39
+ type = "submit"
40
+ > Add File
41
+ </ Button >
37
42
</ div >
38
43
{ name . touched && name . error && < span className = "form-error" > { name . error } </ span > }
39
44
</ form >
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import PropTypes from 'prop-types';
2
2
import React from 'react' ;
3
3
import { domOnlyProps } from '../../../utils/reduxFormUtils' ;
4
4
5
+ import Button from '../../../common/Button' ;
6
+
5
7
class NewFolderForm extends React . Component {
6
8
constructor ( props ) {
7
9
super ( props ) ;
@@ -34,7 +36,10 @@ class NewFolderForm extends React.Component {
34
36
ref = { ( element ) => { this . fileName = element ; } }
35
37
{ ...domOnlyProps ( name ) }
36
38
/>
37
- < input type = "submit" value = "Add Folder" aria-label = "add folder" />
39
+ < Button
40
+ type = "submit"
41
+ > Add Folder
42
+ </ Button >
38
43
</ div >
39
44
{ name . touched && name . error && < span className = "form-error" > { name . error } </ span > }
40
45
</ form >
You can’t perform that action at this time.
0 commit comments