Skip to content

Disable Sidebar Tabs if Feature not available #1710

@shrugs

Description

@shrugs
  • use the useENSAdminFeatures hook to conditionally enable/disable sidebar tabs
  • must include the necessary contexts in order to access this state
    • see apps/ensadmin/src/components/layout-wrapper.tsx
    • maybe just have a smart component for the relevant sidebar tabs that calls useENSAdminFeatures and enabled/disables itself
  • provide a tooltip/popover explaining why the tab is disabled
  • leave the existing <RequireENSAdminFeature /> usage on the tooling's pages because they can still be access directly of course

Metadata

Metadata

Assignees

No one assigned

    Labels

    ensadminENSAdmin related

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions