1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-26 15:42:27 -05:00

Move utils.js to browserify/require() format

This commit is contained in:
Aaron Lindsay 2016-02-13 16:41:44 -05:00
parent b59fd60817
commit d6ddf0f65f
4 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,8 @@ var React = require('react');
var Combobox = require('react-widgets').Combobox;
var getAccountDisplayList = require('./utils.js').getAccountDisplayList;
module.exports = React.createClass({
displayName: "AccountCombobox",
getDefaultProps: function() {

View File

@ -33,6 +33,8 @@ var TransactionStatusList = models.TransactionStatusList;
var TransactionStatusMap = models.TransactionStatusMap;
var Error = models.Error;
var getAccountDisplayName = require('./utils.js').getAccountDisplayName;
var AccountCombobox = require('./AccountCombobox.js');
const TransactionRow = React.createClass({

View File

@ -11,7 +11,6 @@
<script src="static/external/big/big.min.js"></script>
<script src="static/external/classnames/index.js"></script>
<script type="text/javascript" src="static/utils.js"></script>
<script type="text/javascript" src="static/bundle.js"></script>
</head>

View File

@ -25,3 +25,8 @@ const getAccountDisplayName = function(account, account_map) {
}
return name;
};
module.exports = {
getAccountDisplayList: getAccountDisplayList,
getAccountDisplayName: getAccountDisplayName
};