Skip to content

Commit

Permalink
chore: fix select style
Browse files Browse the repository at this point in the history
close #3193
  • Loading branch information
zhouhanseng committed Jun 6, 2021
1 parent 5da1623 commit af46719
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
15 changes: 5 additions & 10 deletions packages/maskbook/src/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@
"eanble_or_disable_plugin": "플러그인 사용/사용 안 함",
"feedback": "피드백",
"fingerprint": "지문",
"activity": "활동",
"activity_inbound": "받기",
"activity_outbound": "보내기",
"buy": "매수하기",
"buy_now": "바로 매수하기",
"setup_guide_optional": "[옵션널]",
Expand Down Expand Up @@ -341,6 +338,8 @@
"plugin_wallet_settings_collectible_data_source_primary": "수집품 데이터 소스",
"plugin_wallet_settings_collectible_data_source_secondary": "수집품 데이터 소스 선택",
"plugin_wallet_name_placeholder": "",
"plugin_wallet_fail_to_sign": "",
"plugin_wallet_cancel_sign": "",
"plugin_red_packet_display_name": "플러그인: 빨간 백",
"plugin_red_packet_split_mode": "분할 모드",
"plugin_red_packet_average": "평균",
Expand All @@ -351,6 +350,7 @@
"plugin_red_packet_claim": "수령",
"plugin_red_packet_claiming": "",
"plugin_red_packet_refund": "반환",
"plugin_red_packet_empty": "",
"plugin_red_packet_refunding": "",
"plugin_red_packet_select_existing": "기존 빨간 백 선택",
"plugin_red_packet_share_message": "",
Expand All @@ -365,22 +365,17 @@
"plugin_red_packet_description_failover": "{{name}} / {{shares}}에서 / {{total}} {{symbol}} 공유합니다.",
"plugin_red_packet_claiming_from": "{{name}}에서 빨간 팩 받는 중",
"plugin_red_packet_refunding_for": "{{balance}} {{symbol}} 빨간 백 반환 중",
"plugin_red_packet_claiming": "",
"plugin_red_packet_empty": "",
"plugin_red_packet_refunding": "",
"plugin_red_packet_amount_per_share": "공유 총액",
"plugin_red_packet_send_symbol": "{{symbol}} 보내기",
"plugin_red_packet_create_with_token": "{{symbol}} 으로 빨간 백 만드는 중",
"plugin_gitcoin_readme": "이 서비스를 이용하면 <fund>Gitcoin 개발 기금에 당신의 기여금</fund>의 5%를 기부할 것이다.",
"plugin_gitcoin_readme_fund_link": "https://gitcoin.co/grants/86/gitcoin-sustainability-fund",
"plugin_wallet_fail_to_sign": "",
"plugin_wallet_cancel_sign": "",
"plugin_red_packet_history_duration": "",
"plugin_red_packet_history_total_amount": "",
"plugin_red_packet_history_total_claimed_amount": "",
"plugin_red_packet_history_claimed": "",
"plugin_red_packet_history_split_mode": "",
"plugin_red_packet_history_send": "",
"plugin_gitcoin_readme": "이 서비스를 이용하면 <fund>Gitcoin 개발 기금에 당신의 기여금</fund>의 5%를 기부할 것이다.",
"plugin_gitcoin_readme_fund_link": "https://gitcoin.co/grants/86/gitcoin-sustainability-fund",
"plugin_gitcoin_select_a_token": "토큰 선택",
"plugin_gitcoin_enter_an_amount": "수액 입력",
"plugin_gitcoin_grant_not_available": "이용 불가",
Expand Down
2 changes: 1 addition & 1 deletion packages/maskbook/src/_locales/zh/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
"plugin_red_packet_claim": "認領",
"plugin_red_packet_claiming": "",
"plugin_red_packet_refund": "退款",
"plugin_red_packet_empty": "",
"plugin_red_packet_empty": "",
"plugin_red_packet_refunding": "",
"plugin_red_packet_select_existing": "選擇已存在的",
"plugin_red_packet_share_message": "",
Expand Down
8 changes: 2 additions & 6 deletions packages/maskbook/src/plugins/RedPacket/UI/RedPacketForm.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useState, useRef, useCallback, useMemo, ChangeEvent, useEffect } from 'react'
import { makeStyles, FormControl, TextField, InputLabel, Select, MenuItem, MenuProps } from '@material-ui/core'
import { omit } from 'lodash-es'
import classNames from 'classnames'
import { v4 as uuid } from 'uuid'
import BigNumber from 'bignumber.js'

Expand Down Expand Up @@ -46,10 +45,7 @@ const useStyles = makeStyles((theme) => ({
flex: 1,
padding: theme.spacing(0.5),
},
selectInput: {
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(2),
},

tip: {
fontSize: 12,
color: theme.palette.text.secondary,
Expand Down Expand Up @@ -262,7 +258,7 @@ export function RedPacketForm(props: RedPacketFormProps) {
return (
<>
<div className={classes.line}>
<FormControl className={classNames(classes.input, classes.selectInput)} variant="outlined">
<FormControl className={classes.input} variant="outlined">
<InputLabel className={classes.selectShrinkLabel}>{t('plugin_red_packet_split_mode')}</InputLabel>
<Select
value={isRandom ? 1 : 0}
Expand Down

0 comments on commit af46719

Please sign in to comment.