Skip to content

Commit

Permalink
fix: placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Aug 4, 2023
1 parent 5cb17e3 commit d387dd2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ const SUDTCreateDialog = ({
disabled={accountType === AccountType.CKB}
error={tokenErrors[field.key]}
className={styles.settingField}
placeholder={t(`s-udt.create-dialog.input.${field.label}`)}
hint={
!tokenErrors[field.key] && field.key === 'tokenId' && accountType === AccountType.SUDT
? t(`s-udt.create-dialog.placeholder.${field.label}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const SUDTMigrateToNewAccountDialog = ({
field="balance"
className={styles.field}
value={sudtAmount.amount}
required
disabled
/>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const SUDTUpdateDialog = ({
autoFocus={!idx}
error={tokenErrors[field.key]}
className={styles.fieldItem}
placeholder={t(`s-udt.create-dialog.input.${field.label}`)}
/>
)
})}
Expand Down
7 changes: 7 additions & 0 deletions packages/neuron-ui/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,13 @@
"back": "Back",
"occupy-142-ckb": "Occupies at least 142 CKBytes",
"occupy-61-ckb": "Occupies at least 61 CKBytes",
"input": {
"account-name": "Please input account name",
"token-id": "Please input token ID",
"token-name": "Please input token name",
"symbol": "Please input symbol",
"decimal": "Please input decimal"
},
"placeholder": {
"token-id": "Token ID is the Args of the sUDT Type Script, which is the same as the lock hash of the token issuer."
}
Expand Down
7 changes: 7 additions & 0 deletions packages/neuron-ui/src/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,13 @@
"back": "上一步",
"occupy-142-ckb": "至少佔用 142 CKBytes",
"occupy-61-ckb": "至少佔用 61 CKBytes",
"input": {
"account-name": "請輸入賬戶名稱",
"token-id": "請輸入代幣ID",
"token-name": "請輸入代幣名稱",
"symbol": "請輸入簡稱",
"decimal": "請輸入小數位"
},
"placeholder": {
"token-id": "代幣 ID 即 sUDT Type Script 的 Args,等同於該 token 發行者的 lock hash。"
}
Expand Down
7 changes: 7 additions & 0 deletions packages/neuron-ui/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,13 @@
"back": "上一步",
"occupy-142-ckb": "至少占用 142 CKBytes",
"occupy-61-ckb": "至少占用 61 CKBytes",
"input": {
"account-name": "请输入账户名称",
"token-id": "请输入代币ID",
"token-name": "请输入代币名称",
"symbol": "请输入简称",
"decimal": "请输入小数位"
},
"placeholder": {
"token-id": "代币 ID 即 sUDT Type Script 的 Args,等同于该 token 发行者的 lock hash。"
}
Expand Down

0 comments on commit d387dd2

Please sign in to comment.