File tree 6 files changed +28
-31
lines changed
6 files changed +28
-31
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import lodash from 'lodash';
7
7
const icons = {
8
8
github : require ( '../images/github.svg' ) ,
9
9
google : require ( '../images/google.svg' ) ,
10
+ plusIcon : require ( '../images/plus-icon.svg' ) ,
10
11
} ;
11
12
12
13
/*
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import PropTypes from 'prop-types';
2
2
import React from 'react' ;
3
3
import InlineSVG from 'react-inlinesvg' ;
4
4
5
+ import Button from '../../../common/Button' ;
6
+ import Icon from '../../../common/Icon' ;
5
7
import CopyableInput from '../../IDE/components/CopyableInput' ;
6
8
7
9
import APIKeyList from './APIKeyList' ;
8
10
9
- const plusIcon = require ( '../../../images/plus-icon.svg' ) ;
10
-
11
11
export const APIKeyPropType = PropTypes . shape ( {
12
12
id : PropTypes . object . isRequired ,
13
13
token : PropTypes . object ,
@@ -81,14 +81,15 @@ class APIKeyForm extends React.Component {
81
81
type = "text"
82
82
value = { this . state . keyLabel }
83
83
/>
84
- < button
85
- className = "api-key-form__create-button"
84
+ < Button
85
+
86
86
disabled = { this . state . keyLabel === '' }
87
87
type = "submit"
88
+ label = "Create new key"
88
89
>
89
- < InlineSVG src = { plusIcon } className = "api-key-form__create-icon" />
90
- Create
91
- </ button >
90
+ < Icon name = { Icon . names . plusIcon } />
91
+ < span > Create</ span >
92
+ </ Button >
92
93
</ form >
93
94
94
95
{
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
import React from 'react' ;
3
3
import { domOnlyProps } from '../../../utils/reduxFormUtils' ;
4
+ import Button from '../../../common/Button' ;
4
5
5
6
function AccountForm ( props ) {
6
7
const {
@@ -44,11 +45,10 @@ function AccountForm(props) {
44
45
< span className = "form__status" > Confirmation sent, check your email.</ span >
45
46
) :
46
47
(
47
- < button
48
- className = "form__action"
48
+ < Button
49
49
onClick = { handleInitiateVerification }
50
50
> Resend confirmation email
51
- </ button >
51
+ </ Button >
52
52
)
53
53
}
54
54
</ p >
@@ -92,12 +92,11 @@ function AccountForm(props) {
92
92
/>
93
93
{ newPassword . touched && newPassword . error && < span className = "form-error" > { newPassword . error } </ span > }
94
94
</ p >
95
- < input
95
+ < Button
96
96
type = "submit"
97
97
disabled = { submitting || invalid || pristine }
98
- value = "Save All Settings"
99
- aria-label = "updateSettings"
100
- />
98
+ > Save All Settings
99
+ </ Button >
101
100
</ form >
102
101
) ;
103
102
}
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ function SocialLoginPanel(props) {
23
23
< p className = "account__social-text" >
24
24
Use your GitHub or Google account to log into the p5.js Web Editor.
25
25
</ p >
26
- < SocialAuthButton service = { SocialAuthButton . services . github } />
27
- < SocialAuthButton service = { SocialAuthButton . services . google } />
26
+ < div className = "account__social-stack" >
27
+ < SocialAuthButton service = { SocialAuthButton . services . github } />
28
+ < SocialAuthButton service = { SocialAuthButton . services . google } />
29
+ </ div >
28
30
</ React . Fragment >
29
31
) ;
30
32
}
Original file line number Diff line number Diff line change 20
20
.account__social-text {
21
21
padding-bottom : #{15 / $base-font-size } rem;
22
22
}
23
+
24
+
25
+ .account__social-stack {
26
+ display : flex ;
27
+ }
28
+
29
+ .account__social-stack > * {
30
+ margin-right : #{15 / $base-font-size } rem;
31
+ }
Original file line number Diff line number Diff line change 17
17
color : getThemifyVariable (' heading-text-color' );
18
18
}
19
19
}
20
-
21
- .api-key-form__create-button {
22
- display : flex ;
23
- justify-content : center ;
24
- align-items : center ;
25
- }
26
-
27
- .api-key-form__create-icon {
28
- display : flex ;
29
- }
30
-
31
- .api-key-form__create-button .isvg {
32
- padding-right : 10px ;
33
- }
34
-
35
20
.api-key-list {
36
21
display : block ;
37
22
max-width : 900px ;
You can’t perform that action at this time.
0 commit comments