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

fix(examples): Hide edit button outside editor #30657

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

zJaaal
Copy link
Contributor

@zJaaal zJaaal commented Nov 14, 2024

This pull request includes changes to the examples/nextjs/src/components/shared/contentlets.js file to improve the functionality and performance of the Contentlets component. The most important changes include replacing React with useMemo, adding a new import for isInsideEditor, and conditionally rendering the edit button based on whether the contentlet is inside the editor.

Improvements to functionality:

This PR fixes: #30218

@zJaaal zJaaal added this pull request to the merge queue Nov 14, 2024
Merged via the queue into main with commit efcc15e Nov 14, 2024
20 checks passed
@zJaaal zJaaal deleted the 30218-hide-edit-out-editor branch November 14, 2024 19:11
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.

UVE: Support #editContentlet Macro in Universal Visual Editor
3 participants