Fixes linting errors

This commit is contained in:
Andrew Nicolaou 2019-05-15 16:25:58 +02:00 committed by Cassie Tarakajian
parent 9f627c1c37
commit c508765310
4 changed files with 17 additions and 9 deletions

View file

@ -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';

View file

@ -63,7 +63,11 @@ class APIKeyForm extends React.Component {
return (
<div className="api-key-form">
<p className="api-key-form__summary">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.</p>
<p className="api-key-form__summary">
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.
</p>
<div className="api-key-form__section">
<h3 className="api-key-form__title">Create new token</h3>
@ -90,7 +94,10 @@ class APIKeyForm extends React.Component {
keyWithToken && (
<div className="api-key-form__new-token">
<h4 className="api-key-form__new-token__title">Your new access token</h4>
<p className="api-key-form__new-token__info">Make sure to copy your new personal access token now. You wont be able to see it again!</p>
<p className="api-key-form__new-token__info">
Make sure to copy your new personal access token now.
You wont be able to see it again!
</p>
<CopyableInput label={keyWithToken.label} value={keyWithToken.token} />
</div>
)

View file

@ -22,7 +22,9 @@ function APIKeyList({ apiKeys, onRemove }) {
</thead>
<tbody>
{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 (
<tr key={key.id}>

View file

@ -2,7 +2,7 @@ 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';
@ -61,7 +61,9 @@ class AccountView extends React.Component {
<TabPanel>
<AccountForm {...this.props} />
<h2 className="form-container__divider">Social Login</h2>
<p className="form-container__context">Link this account with your GitHub account to allow login from both.</p>
<p className="form-container__context">
Link this account with your GitHub account to allow login from both.
</p>
<GithubButton buttonText="Login with GitHub" />
</TabPanel>
<TabPanel>