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

Import Placeholder from 'utopia-api' #20

Merged
merged 2 commits into from
May 9, 2024
Merged

Conversation

liady
Copy link
Collaborator

@liady liady commented May 9, 2024

Currently components.utopia.js defines Placeholder as imported from both /components/Components and utopia-api, this PR changes all of its occurences to be from utopia-api

Fixes concrete-utopia/utopia#5626

@@ -638,7 +645,7 @@ const Components = {
children: 'not-supported',
variants: {
label: 'QuoteWithRating',
imports: `import { QuoteWithRating, Placeholder } from "/app/components/Components"`,
imports: `import { QuoteWithRating } from "/app/components/Components"`,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placeholder isn't being used here at all

@@ -20,7 +20,6 @@ import { RecommendedProducts } from '../components/RecommendedProducts'
import { loader as loaderTemplate } from './trippy-trails-template'
import { connectToMetaObjects as connectToMetaObjectsTemplate } from '../helpers/connect-metaobject'
import { Image, Money } from '@shopify/hydrogen'
import { Placeholder } from 'utopia-api'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not being used here at all

Copy link
Contributor

shopify bot commented May 9, 2024

Oxygen deployed a preview of your fix/change-placeholder-import branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Trippy Trails ✅ Successful (Logs) Preview deployment Inspect deployment May 9, 2024 2:06 PM

Learn more about Hydrogen's GitHub integration.

@liady liady merged commit 4657d59 into main May 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replacing a Placeholder from Column resulted in duplicate imports of Placeholder from different sources
3 participants