Skip to content

Commit f990d56

Browse files
committed
feat(webapp): move New organization to the top of the org switcher
In the Switch organization submenu, New organization now sits above the list of organizations with the divider below it, instead of below the list.
1 parent 635c9c7 commit f990d56

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,15 @@ function SwitchOrganizations({
16011601
onMouseLeave={handleMouseLeave}
16021602
>
16031603
<div className="flex flex-col gap-1 p-1">
1604+
<PopoverMenuItem
1605+
to={newOrganizationPath()}
1606+
title="New organization"
1607+
icon={PlusIcon}
1608+
leadingIconClassName={SIDE_MENU_POPOVER_ITEM_ICON}
1609+
className={SIDE_MENU_POPOVER_ITEM_LABEL}
1610+
/>
1611+
</div>
1612+
<div className="flex flex-col gap-1 border-t border-grid-bright p-1">
16041613
{organizations.map((org) => (
16051614
<PopoverMenuItem
16061615
key={org.id}
@@ -1613,15 +1622,6 @@ function SwitchOrganizations({
16131622
/>
16141623
))}
16151624
</div>
1616-
<div className="border-t border-grid-bright p-1">
1617-
<PopoverMenuItem
1618-
to={newOrganizationPath()}
1619-
title="New organization"
1620-
icon={PlusIcon}
1621-
leadingIconClassName={SIDE_MENU_POPOVER_ITEM_ICON}
1622-
className={SIDE_MENU_POPOVER_ITEM_LABEL}
1623-
/>
1624-
</div>
16251625
</PopoverContent>
16261626
</div>
16271627
</Popover>

0 commit comments

Comments
 (0)