mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-31 16:00:05 -04:00
Change definitions to const where appropriate
This commit is contained in:
parent
47ff76d868
commit
cd24d5ecab
@ -9,7 +9,7 @@ var MenuItem = ReactBootstrap.MenuItem;
|
|||||||
var Row = ReactBootstrap.Row;
|
var Row = ReactBootstrap.Row;
|
||||||
var Col = ReactBootstrap.Col;
|
var Col = ReactBootstrap.Col;
|
||||||
|
|
||||||
var LoginBar = React.createClass({
|
const LoginBar = React.createClass({
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {username: '', password: ''};
|
return {username: '', password: ''};
|
||||||
},
|
},
|
||||||
@ -61,7 +61,7 @@ var LoginBar = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var LogoutBar = React.createClass({
|
const LogoutBar = React.createClass({
|
||||||
handleOnSelect: function(key) {
|
handleOnSelect: function(key) {
|
||||||
if (key == 1) {
|
if (key == 1) {
|
||||||
if (this.props.onAccountSettings != null)
|
if (this.props.onAccountSettings != null)
|
||||||
@ -91,7 +91,7 @@ var LogoutBar = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var TopBar = React.createClass({
|
const TopBar = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var barContents;
|
var barContents;
|
||||||
var errorAlert;
|
var errorAlert;
|
||||||
|
@ -5,7 +5,7 @@ var TabPane = ReactBootstrap.TabPane;
|
|||||||
var Panel = ReactBootstrap.Panel;
|
var Panel = ReactBootstrap.Panel;
|
||||||
var ButtonGroup = ReactBootstrap.ButtonGroup;
|
var ButtonGroup = ReactBootstrap.ButtonGroup;
|
||||||
|
|
||||||
var NewUserForm = React.createClass({
|
const NewUserForm = React.createClass({
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {error: "",
|
return {error: "",
|
||||||
name: "",
|
name: "",
|
||||||
@ -146,7 +146,7 @@ var NewUserForm = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var AccountSettings = React.createClass({
|
const AccountSettings = React.createClass({
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {error: "",
|
return {error: "",
|
||||||
name: this.props.user.Name,
|
name: this.props.user.Name,
|
||||||
@ -293,7 +293,7 @@ var AccountSettings = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var MoneyGoApp = React.createClass({
|
const MoneyGoApp = React.createClass({
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
hash: "home",
|
hash: "home",
|
||||||
|
Loading…
Reference in New Issue
Block a user