Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render: function render() {
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
'h2',
null,
'Doughnut Example'
),
_react2.default.createElement(_reactChartjs.Doughnut, { data: data })
);
}
});
var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var ReactIntl = require('react-intl');
var Reflux = require('reflux');
var classNames = require('classnames');
var Base64 = require('js-base64').Base64;
var jwtDecode = require('jwt-decode');
var DoughnutChart = require('react-chartjs-2').Doughnut;
var dateFormat = require('dateformat');
var StringHelper = require('../helper/StringHelper');
var TransactionStore = require('../store/TransactionStore'),
VoteStore = require('../store/VoteStore'),
ProofOfVoteStore = require('../store/ProofOfVoteStore');
var BallotAction = require('../action/BallotAction'),
VoteAction = require('../action/VoteAction'),
ProofOfVoteAction = require('../action/ProofOfVoteAction');
var LoadingIndicator = require('../component/LoadingIndicator'),
Title = require('../component/Title'),
Icon = require('../component/Icon'),
QRCodeReader = require('../component/QRCodeReader'),