1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-27 07:52:28 -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 Combobox = require('react-widgets').Combobox;
var getAccountDisplayList = require('./utils.js').getAccountDisplayList;
module.exports = React.createClass({ module.exports = React.createClass({
displayName: "AccountCombobox", displayName: "AccountCombobox",
getDefaultProps: function() { getDefaultProps: function() {

View File

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

View File

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

View File

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