-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWA-465 pdp implement the image slider #84
PWA-465 pdp implement the image slider #84
Conversation
@@ -3,6 +3,7 @@ import { | |||
routeDidLeave, | |||
} from '@shopgate/pwa-common/streams/history'; | |||
import { getRedirectLocation } from '@shopgate/pwa-common/selectors/history'; | |||
import setViewTitle from '@shopgate/pwa-common/action-creators/view/setViewTitle'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the setTitle action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -47,6 +49,11 @@ function product(subscribe) { | |||
dispatch(setProductVariantId(null)); | |||
} | |||
}); | |||
|
|||
subscribe(productReceived$, ({ dispatch, action }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The title should only be set if the user is still on the product page with the received id.
import PropTypes from 'prop-types'; | ||
import portalCollection from '../../helpers/portals/portalCollection'; | ||
import { componentsConfig as config } from '../../helpers/config'; | ||
|
||
/** | ||
* The Portal component. | ||
*/ | ||
class Portal extends Component { | ||
class Portal extends PureComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
…-Implement-the-ImageSlider
…-Implement-the-ImageSlider
@@ -239,7 +239,7 @@ const getProductImagesState = state => state.product.imagesByProductId; | |||
* @return {Array|null} | |||
*/ | |||
export const getProductImages = createSelector( | |||
getCurrentProductId, | |||
(state, props) => props.productId, | |||
getCurrentBaseProductId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This selector needs to be changed to not rely on a product id stored in Redux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
No description provided.