commit 754d9fde6f4e458466b3fcb2e27695bb8a26c74f
parent 46247c659ac25444ef8a97691e0817668c7341d9
Author: Konstantin Tarkus <koistya@gmail.com>
Date: Mon, 22 Dec 2014 09:11:10 +0300
Merge pull request #45 from proxyfabio/master
Add keyMirror to constants (enumerations)
Diffstat:
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/constants/ActionTypes.js b/src/constants/ActionTypes.js
@@ -5,13 +5,13 @@
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
-
-module.exports = {
+var keyMirror = require('react/lib/keyMirror');
+module.exports = keyMirror({
// Route action types
- SET_CURRENT_ROUTE: 'SET_CURRENT_ROUTE',
+ SET_CURRENT_ROUTE: null,
// Page action types
- SET_CURRENT_PAGE: 'SET_CURRENT_PAGE'
+ SET_CURRENT_PAGE: null
-};
+});
diff --git a/src/constants/PayloadSources.js b/src/constants/PayloadSources.js
@@ -5,10 +5,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
+var keyMirror = require('react/lib/keyMirror');
+module.exports = keyMirror({
-module.exports = {
+ VIEW_ACTION: null,
+ SERVER_ACTION: null
- VIEW_ACTION: 'VIEW_ACTION',
- SERVER_ACTION: 'SERVER_ACTION'
-
-};
+});