Skip to content

Conditionally Hide Routes in Sidebar #21

@vcolmenar

Description

@vcolmenar

User Story
As a developer,
I want to have a hidden prop in routes.js
So that I can create routes respected by react-router, but not shown in Sidebar.js

Description
A hidden prop can be added in routes.js that would still be loaded into the react-router, but not rendered in the Sidenav.
This will allow devs to not have to manually create custom router logic for their nested routes.

See PR:
https://github.com/horizon-ui/horizon-ui-chakra/pull/22/files?diff=split&w=1 (whitespace removed for readability)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions