-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the Bug
For our SSW.Website, JSON data generated by TinaCMS is added as a param (i.e menuBarItems) . However, the current implementation calls ssw.com.au/api/get-megamenu regardless of the parameters, leading to overwritten props data.
To Reproduce
Steps to reproduce the behavior:
- Install this as a library
- Use
MegaMenuLayoutand pass the prop calledmenuBarItems
Expected Behavior
It should not call the API if the menuBarItems has data
Tasks
- Avoid the API call if the
menuBarItemsis already provided - Update REAMDE for NextJS project as it may not run directly due to Server Side Rendering
- Add ClassName props as an optional prop to add customizable anchor links styling
Ideally, we should export types such as iconMap and other types used for the website's TinaCMS schema, rather than keeping them within the website itself.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels