hacksaw-react
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -22,3 +22,3 @@ { | ||
"enzyme": "^2.6.0", | ||
"hacksaw": "0.0.6", | ||
"hacksaw": "0.1.0", | ||
"istanbul": "^1.0.0-alpha.2", | ||
@@ -31,3 +31,3 @@ "jsdom": "^9.8.3", | ||
}, | ||
"version": "0.0.1" | ||
"version": "0.1.0" | ||
} |
@@ -27,9 +27,9 @@ hacksaw-react | ||
import { listener } from 'hacksaw-react'; | ||
import { Product } from '../models'; | ||
import { ProductStore } from '../stores'; | ||
@listener(Product.context('search')) | ||
@listener(ProductStore.context('search')) | ||
class Search extends Component { | ||
get store() { | ||
const { query } = this.props.location; | ||
return Product.context('search', query); | ||
return ProductStore.context('search', query); | ||
} | ||
@@ -36,0 +36,0 @@ |
14164