-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nav): Display secondary nav in mobile menu (#84582)
- Adds the secondary nav menu to the mobile menu when you first tap the hamburger menu - In order to display the header title, adds `activeGroup` state to the navigation context (also need to add a prop to `<SecondaryNavigation />` and update callsites - Adds `layout` to the nav context so components can render differently based on the current layout (mobile or sidebar)
- Loading branch information
1 parent
e2a98d9
commit 7e39336
Showing
14 changed files
with
320 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {PrimaryNavGroup} from 'sentry/components/nav/types'; | ||
import {t} from 'sentry/locale'; | ||
|
||
export const NAV_SIDEBAR_COLLAPSED_LOCAL_STORAGE_KEY = 'navigation-sidebar-is-collapsed'; | ||
|
||
export const NAV_GROUP_LABELS: Record<PrimaryNavGroup, string> = { | ||
[PrimaryNavGroup.ISSUES]: t('Issues'), | ||
[PrimaryNavGroup.EXPLORE]: t('Explore'), | ||
[PrimaryNavGroup.DASHBOARDS]: t('Dashboards'), | ||
[PrimaryNavGroup.INSIGHTS]: t('Insights'), | ||
[PrimaryNavGroup.SETTINGS]: t('Settings'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.