mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
fix: close popup on lang select
This commit is contained in:
parent
09445411a3
commit
521fe13cfb
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ const supportedLanguages: { key: string; title: string }[] = [
|
|||
|
||||
export const LanguageSelectPopup = ({ onClose }: { onClose: () => void }) => {
|
||||
const items: IPopupItem[] = supportedLanguages.map<IPopupItem>((item) => ({
|
||||
onClick: () => void i18n.changeLanguage(item.key),
|
||||
onClick: () => {
|
||||
void i18n.changeLanguage(item.key);
|
||||
onClose();
|
||||
},
|
||||
title: item.title,
|
||||
icon: <></>,
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue