generated from EasyWebApp/WebCell-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] Lark notification of Vercel preview environment [optimize] Query & Render of Member List in Home page [optimize] update Upstream packages
- Loading branch information
Showing
11 changed files
with
429 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Option, Select } from 'idea-react'; | ||
import { observer } from 'mobx-react'; | ||
import { FC } from 'react'; | ||
|
||
import { i18n, LanguageName } from '../models/Translation'; | ||
|
||
const LanguageMenu: FC = observer(() => { | ||
const { currentLanguage } = i18n; | ||
|
||
return ( | ||
<Select | ||
value={currentLanguage} | ||
onChange={key => i18n.changeLanguage(key as typeof currentLanguage)} | ||
> | ||
{Object.entries(LanguageName).map(([key, name]) => ( | ||
<Option key={key} value={key}> | ||
{name} | ||
</Option> | ||
))} | ||
</Select> | ||
); | ||
}); | ||
|
||
export default LanguageMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2417f17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for idea2app ready!
✅ Preview
https://idea2app-pgb6fd6zc-techquery.vercel.app
Built with commit 2417f17.
This pull request is being automatically deployed with vercel-action