dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
865 stars 467 forks source link

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

Closed zJaaal closed 1 week ago

zJaaal commented 1 week ago

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