File tree Expand file tree Collapse file tree
apps/web/modules/shell/user-dropdown Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ export function ProfileDropdown() {
4242 const currentOption = options . find ( ( option ) => option . value === sessionData . upId ) || options [ 0 ] ;
4343
4444 return (
45- < Dropdown open = { menuOpen } >
46- < DropdownMenuTrigger asChild onClick = { ( ) => setMenuOpen ( ( menuOpen ) => ! menuOpen ) } >
45+ < Dropdown open = { menuOpen } onOpenChange = { setMenuOpen } >
46+ < DropdownMenuTrigger asChild >
4747 < button
4848 data-testid = "user-dropdown-trigger-button"
4949 className = { classNames (
@@ -55,7 +55,7 @@ export function ProfileDropdown() {
5555 { currentOption . label }
5656 </ span >
5757 < Icon
58- name = "chevron-down"
58+ name = { menuOpen ? "chevron-up" : "chevron- down"}
5959 className = "group-hover:text-subtle text-muted h-4 w-4 shrink-0 transition rtl:mr-4"
6060 aria-hidden = "true"
6161 />
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ export function UserDropdown({ small }: UserDropdownProps) {
167167 </ span >
168168 </ span >
169169 < Icon
170- name = "chevron-down"
170+ name = { menuOpen ? "chevron-up" : "chevron- down"}
171171 className = "group-hover:text-subtle text-muted h-4 w-4 shrink-0 transition rtl:mr-4"
172172 aria-hidden = "true"
173173 />
You can’t perform that action at this time.
0 commit comments