-
Notifications
You must be signed in to change notification settings - Fork 145
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
Store locator extension integration @@W-17273365@@ #2225
Store locator extension integration @@W-17273365@@ #2225
Conversation
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.
I will remove changes in this file before merge.
packages/extension-chakra-store-locator/src/components/with-store-locator.tsx
Outdated
Show resolved
Hide resolved
packages/extension-chakra-storefront/src/components/header/index.jsx
Outdated
Show resolved
Hide resolved
I followed the steps to test the change and after disabling the store locator in package.json and running
|
We discussed it IRL and it is a bug found in the SDK, I've created a ticket to address the bug. |
if ( | ||
!window.location.pathname.includes( | ||
storeLocatorExtension.config.path | ||
) |
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.
would it throw if storeLocatorExtension is undefined?
p/s nvm. Saw the conditional rendering above.
packages/extension-chakra-storefront/src/components/header/index.jsx
Outdated
Show resolved
Hide resolved
…ex.jsx Signed-off-by: Kevin He <kevin.he@salesforce.com>
Description
This PR adds the integration between
extension-chakra-storefront
andextension-chakra-store-locator
.The storefront extension now detects the existence of the store locator extension, if installed and enabled, it will conditionally render the store locator button in the header, and use the store locator's store to control the modal's open/close state.
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization