Skip to content

Commit

Permalink
Implement for store items and product card (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaldin authored Dec 14, 2018
1 parent d09d576 commit decd0c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Authorization/SignIn/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const translations: TranslationsBundleType = {
en: {
labelEmail: 'Email',
labelPassword: 'Password',
forgotPassword: 'ForgotPassword',
forgotPassword: 'Forgot password',
signIn: 'Sign In',
emailNotVerified: 'Email not verified',
},
Expand Down
8 changes: 6 additions & 2 deletions src/pages/Store/Items/StoreItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,12 @@ export default createPaginationContainer(
first: { type: "Int", defaultValue: 8 }
after: { type: "ID", defaultValue: null }
) {
findProduct(first: $first, after: $after, searchTerm: $searchTerm)
@connection(key: "StoreItems_findProduct") {
findProduct(
first: $first
after: $after
searchTerm: $searchTerm
visibility: "active"
) @connection(key: "StoreItems_findProduct") {
edges {
node {
id
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Store/Product/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export default createFragmentContainer(
text
lang
}
store {
store(visibility: "active") {
rawId
name {
lang
Expand Down
2 changes: 1 addition & 1 deletion src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ const routes = (
isPriority
}
}
baseProduct(id: $productID) {
baseProduct(id: $productID, visibility: "active") {
...Product_baseProduct
}
}
Expand Down

0 comments on commit decd0c9

Please sign in to comment.