Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fixes for babel build
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Dec 9, 2016
1 parent 17abf45 commit e171c8e
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 188 deletions.
1 change: 1 addition & 0 deletions js/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"transform-runtime",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread",
"lodash"
],
"retainLines": true,
Expand Down
3 changes: 2 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
"babel-eslint": "7.1.1",
"babel-loader": "6.2.8",
"babel-plugin-lodash": "3.2.10",
"babel-plugin-transform-class-properties": "6.19.0",
"babel-plugin-transform-class-properties": "6.18.0",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"babel-plugin-transform-object-rest-spread": "6.20.2",
"babel-plugin-transform-react-remove-prop-types": "0.2.11",
"babel-plugin-transform-runtime": "6.15.0",
"babel-polyfill": "6.20.0",
Expand Down
9 changes: 4 additions & 5 deletions js/src/api/contract/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,11 @@ export default class Contract {
}

const options = this._getFilterOptions(event, _options);
options.fromBlock = 0;
options.toBlock = 'latest';

return this._api.eth
.getLogs({
fromBlock: 0,
toBlock: 'latest',
...options
})
.getLogs(options)
.then((logs) => this.parseEventLogs(logs));
}

Expand Down

This file was deleted.

28 changes: 0 additions & 28 deletions js/src/views/Status/components-compositors/Animated/Animated.js

This file was deleted.

63 changes: 0 additions & 63 deletions js/src/views/Status/components-compositors/Animated/children.js

This file was deleted.

17 changes: 0 additions & 17 deletions js/src/views/Status/components-compositors/Animated/index.js

This file was deleted.

31 changes: 12 additions & 19 deletions js/src/views/Status/components/Calls/Calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import React, { Component, PropTypes } from 'react';
import AnimateChildren from '../../components-compositors/Animated/children';
import Call from '../Call';
import CallsToolbar from '../CallsToolbar';
import styles from './Calls.css';
Expand Down Expand Up @@ -73,13 +72,11 @@ export default class Calls extends Component {
}

return (
<AnimateChildren>
<div { ...this._test('empty-wrapper') }>
<h3 className={ styles.historyInfo } { ...this._test('empty') }>
Fire up some calls and the results will be here.
</h3>
</div>
</AnimateChildren>
<div { ...this._test('empty-wrapper') }>
<h3 className={ styles.historyInfo } { ...this._test('empty') }>
Fire up some calls and the results will be here.
</h3>
</div>
);
}

Expand All @@ -90,17 +87,13 @@ export default class Calls extends Component {
return;
}

return (
<AnimateChildren>
{ calls.map((call, idx) => (
<Call
key={ calls.length - idx }
call={ call }
setActiveCall={ this.setActiveCall }
/>
)) }
</AnimateChildren>
);
return calls.map((call, idx) => (
<Call
key={ calls.length - idx }
call={ call }
setActiveCall={ this.setActiveCall }
/>
));
}

clearActiveCall = () => {
Expand Down

0 comments on commit e171c8e

Please sign in to comment.