Skip to content

Commit

Permalink
Add .env import to general imports, add semicolon, fix import indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
gmverdon committed Jan 28, 2018
1 parent baa25ab commit a8d90f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"react-scripts": "1.0.17",
"react-tradingview-widget": "^1.2.2",
"reactstrap": "^5.0.0-alpha.4",
"ws": "^3.3.3"
"ws": "^3.3.3",
"dotenv": "^4.0.0"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -21,7 +22,6 @@
"eject": "react-scripts eject"
},
"devDependencies": {
"dotenv": "^4.0.0",
"eslint": "^4.16.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.8.0",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
NavbarToggler,
NavbarBrand,
Nav,
NavItem }
from 'reactstrap';
NavItem,
} from 'reactstrap';
import './styles.css';

const Header = () => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/OptionPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './styles.css';
export default class OptionPanel extends PureComponent {
static defaultProps = {
value: '',
}
};

static propTypes = {
options: PropTypes.arrayOf(PropTypes.shape({
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import dotenv from 'dotenv';
import 'bootstrap/dist/css/bootstrap.css';
import registerServiceWorker from './services/registerServiceWorker';
import './styles.css';
import Root from './scenes';

const dotenv = require('dotenv').config();
dotenv.config();
const opts = {
binance: {
key: process.env.REACT_APP_BINANCE_KEY,
Expand Down

0 comments on commit a8d90f1

Please sign in to comment.