diff --git a/client/common/Icon.jsx b/client/common/Icon.jsx index 6b8bacb2..4a78e2be 100644 --- a/client/common/Icon.jsx +++ b/client/common/Icon.jsx @@ -7,6 +7,7 @@ import lodash from 'lodash'; const icons = { github: require('../images/github.svg'), google: require('../images/google.svg'), + plusIcon: require('../images/plus-icon.svg'), }; /* diff --git a/client/modules/User/components/APIKeyForm.jsx b/client/modules/User/components/APIKeyForm.jsx index dc2f87fa..76dd6297 100644 --- a/client/modules/User/components/APIKeyForm.jsx +++ b/client/modules/User/components/APIKeyForm.jsx @@ -2,12 +2,12 @@ import PropTypes from 'prop-types'; import React from 'react'; import InlineSVG from 'react-inlinesvg'; +import Button from '../../../common/Button'; +import Icon from '../../../common/Icon'; import CopyableInput from '../../IDE/components/CopyableInput'; import APIKeyList from './APIKeyList'; -const plusIcon = require('../../../images/plus-icon.svg'); - export const APIKeyPropType = PropTypes.shape({ id: PropTypes.object.isRequired, token: PropTypes.object, @@ -81,14 +81,15 @@ class APIKeyForm extends React.Component { type="text" value={this.state.keyLabel} /> - + + Create + { diff --git a/client/modules/User/components/AccountForm.jsx b/client/modules/User/components/AccountForm.jsx index c52b8d28..e032448b 100644 --- a/client/modules/User/components/AccountForm.jsx +++ b/client/modules/User/components/AccountForm.jsx @@ -1,6 +1,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import { domOnlyProps } from '../../../utils/reduxFormUtils'; +import Button from '../../../common/Button'; function AccountForm(props) { const { @@ -44,11 +45,10 @@ function AccountForm(props) { Confirmation sent, check your email. ) : ( - + ) }

@@ -92,12 +92,11 @@ function AccountForm(props) { /> {newPassword.touched && newPassword.error && {newPassword.error}}

- + >Save All Settings + ); } diff --git a/client/modules/User/pages/AccountView.jsx b/client/modules/User/pages/AccountView.jsx index ed1c3a30..67f4415a 100644 --- a/client/modules/User/pages/AccountView.jsx +++ b/client/modules/User/pages/AccountView.jsx @@ -23,8 +23,10 @@ function SocialLoginPanel(props) {

Use your GitHub or Google account to log into the p5.js Web Editor.

- - +
+ + +
); } diff --git a/client/styles/components/_account.scss b/client/styles/components/_account.scss index e4a0f837..1f9c8dfc 100644 --- a/client/styles/components/_account.scss +++ b/client/styles/components/_account.scss @@ -20,3 +20,12 @@ .account__social-text { padding-bottom: #{15 / $base-font-size}rem; } + + +.account__social-stack { + display: flex; +} + +.account__social-stack > * { + margin-right: #{15 / $base-font-size}rem; +} diff --git a/client/styles/components/_api-key.scss b/client/styles/components/_api-key.scss index a0986d4e..419abf50 100644 --- a/client/styles/components/_api-key.scss +++ b/client/styles/components/_api-key.scss @@ -17,21 +17,6 @@ color: getThemifyVariable('heading-text-color'); } } - -.api-key-form__create-button { - display: flex; - justify-content: center; - align-items: center; -} - -.api-key-form__create-icon { - display: flex; -} - -.api-key-form__create-button .isvg { - padding-right: 10px; -} - .api-key-list { display: block; max-width: 900px;