refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.92k stars 1.96k forks source link

docs(snippet): use correct constant in function iteration #6055

Closed HamaDler closed 5 days ago

HamaDler commented 1 week ago

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

In useMenu, we have the renderMenuItems function that takes an array of items but doesn't make use of it, instead iterates over the state in the parent function. We can either remove the items that we pass to the function or actually use it.

What is the new behavior?

Uses the function parameter.

fixes # (issue)

Notes for reviewers

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: faa12b6ec15717f7bbf00e97433a89cbdcc7aac9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR