Skip to content
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

Merged
6 changes: 5 additions & 1 deletion packages/extension-chakra-store-locator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"prop-types": "^15",
"react": "^18",
"react-dom": "^18",
"react-router-dom": "^5.3.4"
"react-router-dom": "^5.3.4",
"react-hook-form": "^7"
},
"peerDependenciesMeta": {
"@chakra-ui/react": {
Expand All @@ -53,6 +54,9 @@
},
"react-dom": {
"optional": true
},
"react-hook-form": {
"optional": true
}
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,13 @@ const Header = ({
{...styles.icons}
variant="unstyled"
onClick={() => {
openModal()
if (
!window.location.pathname.includes(
storeLocatorExtension.config.path
)
Copy link
Collaborator

@alexvuong alexvuong Jan 29, 2025

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.

) {
openModal()
}
kevinxh marked this conversation as resolved.
Show resolved Hide resolved
}}
/>
)}
Expand Down
Loading