diff --git a/static/AccountCombobox.js b/static/AccountCombobox.js index b4f9fa9..67492a2 100644 --- a/static/AccountCombobox.js +++ b/static/AccountCombobox.js @@ -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() { diff --git a/static/AccountRegister.js b/static/AccountRegister.js index 597b2e5..40d9a87 100644 --- a/static/AccountRegister.js +++ b/static/AccountRegister.js @@ -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({ diff --git a/static/index.html b/static/index.html index 4e0d5b0..a69d08a 100644 --- a/static/index.html +++ b/static/index.html @@ -11,7 +11,6 @@ - diff --git a/static/utils.js b/static/utils.js index 47ad308..358464c 100644 --- a/static/utils.js +++ b/static/utils.js @@ -25,3 +25,8 @@ const getAccountDisplayName = function(account, account_map) { } return name; }; + +module.exports = { + getAccountDisplayList: getAccountDisplayList, + getAccountDisplayName: getAccountDisplayName +};