Skip to content

Commit

Permalink
fix: reorder sidebar menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Nov 24, 2023
1 parent 8f5c8ba commit ea71494
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions src/components/MainSidebar/MainSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ const MainSidebar = () => {
subtitle={getSubtitle()}
dataTest="input-panel-button"
/>
{entityType?.name && (
<TrackedEntityDimensionsMenuItem
selected={
open &&
selectedTabId === ACCESSORY_PANEL_TAB_TRACKED_ENTITY
}
count={counts.trackedEntity}
onClick={() =>
onClick(ACCESSORY_PANEL_TAB_TRACKED_ENTITY)
}
name={entityType.name}
/>
)}
{!(selectedProgramId || selectedEntityTypeId) ? (
<Tooltip
dataTest={'no-input-tooltip'}
Expand All @@ -139,20 +152,6 @@ const MainSidebar = () => {
) : (
programDimensionsItem
)}
{entityType?.name && (
<TrackedEntityDimensionsMenuItem
selected={
open &&
selectedTabId === ACCESSORY_PANEL_TAB_TRACKED_ENTITY
}
count={counts.trackedEntity}
onClick={() =>
onClick(ACCESSORY_PANEL_TAB_TRACKED_ENTITY)
}
name={entityType.name}
/>
)}

<YourDimensionsMenuItem
selected={
open && selectedTabId === ACCESSORY_PANEL_TAB_YOUR
Expand Down

0 comments on commit ea71494

Please sign in to comment.