Skip to content

Commit

Permalink
[Release] Hotfix 2.23.2 => 2.23.3 (patch) (#10975)
Browse files Browse the repository at this point in the history
* chore: update version to 2.22.3

* fix: update pet promote tweet (#10976)

* chore: remove select language icons (#10972)

---------

Co-authored-by: guanbinrui <[email protected]>
Co-authored-by: UncleBill <[email protected]>
Co-authored-by: Harlan Sun <[email protected]>
  • Loading branch information
4 people authored Oct 17, 2023
1 parent 1ddb380 commit 87182ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"yarn": ">=999.0.0",
"npm": ">=999.0.0"
},
"version": "2.23.2",
"version": "2.23.3",
"private": true,
"license": "AGPL-3.0-or-later",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
import { memo, useCallback, useMemo } from 'react'
import { ActionModal, type ActionModalBaseProps } from '../../components/index.js'
import { useI18N } from '../../../../utils/i18n-next-ui.js'
import { List, ListItemButton, ListItemIcon, ListItemText, Radio } from '@mui/material'
import { List, ListItemButton, ListItemText, Radio } from '@mui/material'
import { getEnumAsArray } from '@masknet/kit'
import { LanguageOptions } from '@masknet/public-api'
import { Icons } from '@masknet/icons'
import { makeStyles } from '@masknet/theme'
import Services from '#services'
import { useLanguage } from '../../../../../shared-ui/index.js'

const LANGUAGE_OPTIONS_ICON_MAP = {
[LanguageOptions.__auto__]: null,
[LanguageOptions.enUS]: <Icons.UK />,
[LanguageOptions.zhCN]: <Icons.CN />,
[LanguageOptions.zhTW]: <Icons.CN />,
[LanguageOptions.jaJP]: <Icons.JP />,
[LanguageOptions.koKR]: <Icons.KR />,
}

const useStyles = makeStyles()((theme) => ({
item: {
padding: theme.spacing(1.5),
borderRadius: 8,
},
icon: {
minWidth: 24,
height: 12,
'& > *': {
width: '16px !important',
height: '12px !important',
},
},
text: {
fontWeight: 700,
fontSize: 12,
Expand Down Expand Up @@ -65,13 +47,11 @@ export const SelectLanguageModal = memo<ActionModalBaseProps>(function SelectLan
<ActionModal header={t('popups_settings_select_language')} {...rest}>
<List>
{getEnumAsArray(LanguageOptions).map((x) => {
const icon = LANGUAGE_OPTIONS_ICON_MAP[x.value]
return (
<ListItemButton
className={classes.item}
key={x.key}
onClick={() => handleLanguageChange(x.value)}>
{icon ? <ListItemIcon className={classes.icon}>{icon}</ListItemIcon> : null}
<ListItemText classes={{ primary: classes.text }} primary={LANGUAGE_OPTIONS_MAP[x.value]} />
<Radio className={classes.radio} checked={lang === x.value} />
</ListItemButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/Pets/src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"pets_dialog_menu_about": "About us",
"plugin_pets_name": "Non-F Friends",
"plugin_pets_description": "Discover the infinite possibilities of #NFTs.",
"share_twitter": "I just set up my Non-Fungible Friend with @realMaskNetwork. Visit my profile to check it out! Install Mask Network extension from mask.io and set yours.\n #mask_io #nonfungiblefriends\nhttps://twitter.com/NonFFriend/status/1508791087149641731",
"share_twitter": "I just set up NFT personal image with @realMaskNetwork chrome extension. Visit my profile to check it out. Install Mask Network extension from mask.io and set yours.\n#mask_io #nonfungiblefriends\n⚙ Setting steps: https://twitter.com/NonFFriend/status/1508791087149641731",
"pet_setting_tooltip$default": "Click the Mask icon in the sidebar and access the Non-F Friends app to configure your personalized desktop NFT pet.",
"pet_setting_tooltip$punk": "I'm CryptoPunk #6128! Voyagers, welcome to the uncharted waters of WEB3!"
}

0 comments on commit 87182ed

Please sign in to comment.