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:
parent
b59fd60817
commit
d6ddf0f65f
@ -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() {
|
||||
|
@ -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({
|
||||
|
@ -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>
|
||||
|
@ -25,3 +25,8 @@ const getAccountDisplayName = function(account, account_map) {
|
||||
}
|
||||
return name;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getAccountDisplayList: getAccountDisplayList,
|
||||
getAccountDisplayName: getAccountDisplayName
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user