Skip to content

Commit

Permalink
fix: address input issue
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Nov 2, 2023
1 parent f31c405 commit c271f0d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const MultisigAddressTable = ({
return (
<TextField
field={`${item.idx}_address`}
rows={item.value ? 2 : 1}
rows={2}
data-idx={item.idx}
value={item.value}
className={styles.addressField}
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/NFTSend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const NFTSend = ({
label={t('migrate-sudt.address')}
placeholder={t('s-udt.send.input-address')}
value={sendState.address}
rows={sendState.address ? 2 : 1}
rows={2}
field={Fields.Address}
onChange={onInput}
error={addressError}
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/SUDTSend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const SUDTSend = () => {
key={field.label}
field={field.key}
onChange={onInput}
rows={field.key === Fields.Address && sendState.address ? 2 : 1}
rows={field.key === Fields.Address ? 2 : 1}
suffix={
field.key === Fields.Amount ? (
<Button
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/SendFieldset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const SendFieldset = ({
<TextField
className={`${styles.addresstField} ${styles.textFieldClass}`}
placeholder={t('send.input-address')}
rows={item.address ? 2 : 1}
rows={2}
label={
<div className={styles.removeLabel}>
<div>{t('send.address')}</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/SignAndVerify/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const SignAndVerify = () => {
data-field="address"
value={address}
onChange={handleInputChange}
rows={address ? 2 : 1}
rows={2}
suffix={
<div className={styles.arrow} data-active={isDropdownOpen}>
<Arrow />
Expand Down

0 comments on commit c271f0d

Please sign in to comment.