1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-11-12 18:30:04 -05:00
moneygo/static/accounts.js
Aaron Lindsay 084ada7e6f Initial JavaScript UI commit
Definitely still a work in progress
2015-07-03 09:33:45 -04:00

27 lines
569 B
JavaScript

// Import all the objects we want to use from ReactBootstrap
var ListGroup = ReactBootstrap.ListGroup;
var ListGroupItem = ReactBootstrap.ListGroupItem;
var AccountList = React.createClass({
getInitialState: function() {
return {
};
},
render: function() {
var accounts = this.props.accounts;
var account_map = this.props.account_map;
var listGroupItems;
for (var i = 0; i < accounts.length; i++) {
listGroupItems += <ListGroupItem>{accounts[i].Name}</ListGroupItem>;
}
return (
<ListGroup>
{listGroupItems}
</ListGroup>
);
}
});