Comparing version 0.0.3 to 0.0.4
@@ -22,2 +22,17 @@ 'use strict'; | ||
_createClass(Reshow, null, [{ | ||
key: 'getStores', | ||
value: function getStores() { | ||
return [_index.pageStore]; | ||
} | ||
}, { | ||
key: 'calculateState', | ||
value: function calculateState(prevState) { | ||
var pageState = _index.pageStore.getState(); | ||
return { | ||
themePath: pageState.get('themePath') | ||
}; | ||
} | ||
}]); | ||
function Reshow(props) { | ||
@@ -29,6 +44,2 @@ _classCallCheck(this, Reshow); | ||
_this.update(props); | ||
_this.state = { | ||
themePath: props.themePath, | ||
popup: null | ||
}; | ||
return _this; | ||
@@ -60,5 +71,2 @@ } | ||
self.update(json); | ||
self.setState({ | ||
themePath: json.themePath | ||
}); | ||
} | ||
@@ -72,3 +80,4 @@ }); | ||
exports.default = Reshow; | ||
var ReshowContainer = _index.Container.create(Reshow); | ||
exports.default = ReshowContainer; | ||
module.exports = exports['default']; |
{ | ||
"name": "reshow", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Flux Reducer Present Library", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13154
224