From c508765310bc292cdaeec19ff49441640b97285a Mon Sep 17 00:00:00 2001 From: Andrew Nicolaou Date: Wed, 15 May 2019 16:25:58 +0200 Subject: [PATCH] Fixes linting errors --- client/modules/User/actions.js | 3 --- client/modules/User/components/APIKeyForm.jsx | 11 +++++++++-- client/modules/User/components/APIKeyList.jsx | 4 +++- client/modules/User/pages/AccountView.jsx | 8 +++++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/client/modules/User/actions.js b/client/modules/User/actions.js index f0708c3c..522e428f 100644 --- a/client/modules/User/actions.js +++ b/client/modules/User/actions.js @@ -1,8 +1,5 @@ -import React from 'react'; import { browserHistory } from 'react-router'; -import ReactDom from 'react-dom'; import axios from 'axios'; -import crypto from 'crypto'; import * as ActionTypes from '../../constants'; import { showErrorModal, justOpenedProject } from '../IDE/actions/ide'; import { showToast, setToastText } from '../IDE/actions/toast'; diff --git a/client/modules/User/components/APIKeyForm.jsx b/client/modules/User/components/APIKeyForm.jsx index 94850099..e4eb8534 100644 --- a/client/modules/User/components/APIKeyForm.jsx +++ b/client/modules/User/components/APIKeyForm.jsx @@ -63,7 +63,11 @@ class APIKeyForm extends React.Component { return (
-

Personal Access Tokens act like your password to allow automated scripts to access the Editor API. Create a token for each script that needs access.

+

+ Personal Access Tokens act like your password to allow automated + scripts to access the Editor API. Create a token for each script + that needs access. +

Create new token

@@ -90,7 +94,10 @@ class APIKeyForm extends React.Component { keyWithToken && (

Your new access token

-

Make sure to copy your new personal access token now. You won’t be able to see it again!

+

+ Make sure to copy your new personal access token now. + You won’t be able to see it again! +

) diff --git a/client/modules/User/components/APIKeyList.jsx b/client/modules/User/components/APIKeyList.jsx index 3f036318..a298196b 100644 --- a/client/modules/User/components/APIKeyList.jsx +++ b/client/modules/User/components/APIKeyList.jsx @@ -22,7 +22,9 @@ function APIKeyList({ apiKeys, onRemove }) { {orderBy(apiKeys, ['createdAt'], ['desc']).map((key) => { - const lastUsed = key.lastUsedAt ? distanceInWordsToNow(new Date(key.lastUsedAt), { addSuffix: true }) : 'Never'; + const lastUsed = key.lastUsedAt ? + distanceInWordsToNow(new Date(key.lastUsedAt), { addSuffix: true }) : + 'Never'; return ( diff --git a/client/modules/User/pages/AccountView.jsx b/client/modules/User/pages/AccountView.jsx index 0da5a37d..12f6f040 100644 --- a/client/modules/User/pages/AccountView.jsx +++ b/client/modules/User/pages/AccountView.jsx @@ -2,12 +2,12 @@ import PropTypes from 'prop-types'; import React from 'react'; import { reduxForm } from 'redux-form'; import { bindActionCreators } from 'redux'; -import { Link, browserHistory } from 'react-router'; +import { browserHistory } from 'react-router'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import InlineSVG from 'react-inlinesvg'; import axios from 'axios'; import { Helmet } from 'react-helmet'; -import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions'; +import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions'; import AccountForm from '../components/AccountForm'; import { validateSettings } from '../../../utils/reduxFormUtils'; import GithubButton from '../components/GithubButton'; @@ -61,7 +61,9 @@ class AccountView extends React.Component {

Social Login

-

Link this account with your GitHub account to allow login from both.

+

+ Link this account with your GitHub account to allow login from both. +