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

Allow NavLink to receive a children function #8164

Merged
merged 8 commits into from Dec 9, 2021
Merged

Allow NavLink to receive a children function #8164

merged 8 commits into from Dec 9, 2021

Commits on Oct 22, 2021

  1. Allow NavLink children to be a function

    This allows NavLink to work this way
    ```jsx
    <NavLink to="/home" className={({ isActive }) => isActive ? activeClassNames : inactiveClassNames}>
      {({ isActive }) => isActive ? <ActiveNavLinkContent /> : <InactiveNavLinkContent />}
    </NavLink>
    ```
    sergiodxa committed Oct 22, 2021
    Copy the full SHA
    b064735 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2021

  1. Update API docs of NavLink

    sergiodxa committed Oct 23, 2021
    Copy the full SHA
    81e5b9c View commit details
    Browse the repository at this point in the history
  2. Update NavLink component

    sergiodxa committed Oct 23, 2021
    Copy the full SHA
    d9dcb9b View commit details
    Browse the repository at this point in the history
  3. Fix test

    sergiodxa committed Oct 23, 2021
    Copy the full SHA
    19e0b24 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Copy the full SHA
    feef52a View commit details
    Browse the repository at this point in the history
  2. Sign CLA

    sergiodxa committed Dec 9, 2021
    Copy the full SHA
    45cdbd4 View commit details
    Browse the repository at this point in the history
  3. Fix formatting

    timdorr committed Dec 9, 2021
    Copy the full SHA
    9ff3135 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    d45e5b1 View commit details
    Browse the repository at this point in the history