From cd24d5ecabd2164a5bd9a6b5bcee2d70f0f3c6f3 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sat, 4 Jul 2015 09:40:12 -0400 Subject: [PATCH] Change definitions to const where appropriate --- static/top_bar.js | 6 +++--- static/ui.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/top_bar.js b/static/top_bar.js index 749b14b..241fbc6 100644 --- a/static/top_bar.js +++ b/static/top_bar.js @@ -9,7 +9,7 @@ var MenuItem = ReactBootstrap.MenuItem; var Row = ReactBootstrap.Row; var Col = ReactBootstrap.Col; -var LoginBar = React.createClass({ +const LoginBar = React.createClass({ getInitialState: function() { return {username: '', password: ''}; }, @@ -61,7 +61,7 @@ var LoginBar = React.createClass({ } }); -var LogoutBar = React.createClass({ +const LogoutBar = React.createClass({ handleOnSelect: function(key) { if (key == 1) { if (this.props.onAccountSettings != null) @@ -91,7 +91,7 @@ var LogoutBar = React.createClass({ } }); -var TopBar = React.createClass({ +const TopBar = React.createClass({ render: function() { var barContents; var errorAlert; diff --git a/static/ui.js b/static/ui.js index 340be20..15b2820 100644 --- a/static/ui.js +++ b/static/ui.js @@ -5,7 +5,7 @@ var TabPane = ReactBootstrap.TabPane; var Panel = ReactBootstrap.Panel; var ButtonGroup = ReactBootstrap.ButtonGroup; -var NewUserForm = React.createClass({ +const NewUserForm = React.createClass({ getInitialState: function() { return {error: "", name: "", @@ -146,7 +146,7 @@ var NewUserForm = React.createClass({ } }); -var AccountSettings = React.createClass({ +const AccountSettings = React.createClass({ getInitialState: function() { return {error: "", name: this.props.user.Name, @@ -293,7 +293,7 @@ var AccountSettings = React.createClass({ } }); -var MoneyGoApp = React.createClass({ +const MoneyGoApp = React.createClass({ getInitialState: function() { return { hash: "home",