Skip to content

Commit 861a3c4

Browse files
fix: close the profile popup after locale is selected
1 parent d29c1dc commit 861a3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/popups/user/Dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const UserProfileDropdown = ({ buttonStyles, onClose }: { buttonStyles?: CSSProp
128128
) : (
129129
<></>
130130
)}
131-
{showLanguageSwitcher && <LanguageList />}
131+
{showLanguageSwitcher && <LanguageList onSelect={onClose} />}
132132
<div className="p-4 flex justify-center bg-indigo-50">
133133
<div className="z-10">
134134
<Button

0 commit comments

Comments
 (0)