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

Feat: Enables override for EmptyGallery in ProductGallery section #303

Closed
wants to merge 4 commits into from

Conversation

hellofanny
Copy link
Contributor

What's the purpose of this pull request?

Applies changes from vtex/faststore#2152

Copy link

vtex-sites bot commented Dec 7, 2023

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit 3e1bfe2

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse/p
📎   /office

@hellofanny hellofanny marked this pull request as ready for review December 8, 2023 16:11
@hellofanny hellofanny requested a review from a team as a code owner December 8, 2023 16:11
hellofanny added a commit to vtex/faststore that referenced this pull request Dec 8, 2023
…#2152)

## What's the purpose of this pull request?

- Enables override for `EmptyGallery` in `ProductGallery` section

## How it works?

- You can override `EmptyGallery` using `__experimentalEmptyGallery`.

## How to test it?

1. In
`packages/core/src/customizations/src/components/overrides/ProductGallery.tsx`

change the following code:
```
const override: SectionOverride = {
  section: SECTION,
  components: { __experimentalEmptyGallery: { Component: () => <>Empty</> } },
}

```

2. run `yarn dev`
- search for 'a'
- You should be able to see "Empty" instead of the `EmtpyGallery`
component.
<img width="1431" alt="image"
src="https://github.com/vtex/faststore/assets/3356699/13084212-d172-4e42-bfcc-3378b74e02be">


### Starters Deploy Preview

vtex-sites/starter.store#303
@hellofanny hellofanny changed the title [Test] Feat: Enables override for EmptyGallery in ProductGallery section Feat: Enables override for EmptyGallery in ProductGallery section Dec 8, 2023
@hellofanny
Copy link
Contributor Author

closed in favor of #307

@hellofanny hellofanny closed this Dec 8, 2023
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.

1 participant