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

[Checkout UI - React] Can't use Switch component on customer-account surface #2283

Closed
CharlyTalavera opened this issue Aug 20, 2024 · 3 comments
Labels

Comments

@CharlyTalavera
Copy link

CharlyTalavera commented Aug 20, 2024

Hi! I'm developing a checkout extension and want to use the Switch component: https://shopify.dev/docs/api/checkout-ui-extensions/2024-07/components/forms/switch, and looks like following importing is invalid:

import { Switch } from "@shopify/ui-extensions-react/customer-account";

Looks like the reason for the error is that we're missing the import in the shared-checkout-components.ts. shared-checkout-components.ts on version 2024.7.0.

Is there any plan to add it into this surface? Thanks!

@brianshen1990
Copy link
Contributor

Hey @CharlyTalavera we are exposing Switch to unstable version of customer account now, and should be available with a unstable version newer than 0.0.0-unstable-20240815181348 . And we will also add it to 2024-10 stable version.

@brianshen1990
Copy link
Contributor

this is the latest unstable version https://www.npmjs.com/package/@shopify/ui-extensions/v/0.0.0-unstable-20240821133956 which includes the Switch component

@CharlyTalavera
Copy link
Author

Amazing! thanks for your help @brianshen1990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants