Remove tag editing from main screen (#2605)

This commit is contained in:
Jaco Greeff 2020-04-23 09:06:28 +02:00 committed by GitHub
parent 14ad39fe79
commit c9e77ae9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 41 deletions

View File

@ -223,16 +223,13 @@ function Account ({ account: { address, meta }, className, filter, isFavorite, s
<CryptoType accountId={address} /> <CryptoType accountId={address} />
</td> </td>
<td className='all'> <td className='all'>
<div className='tags--toggle'> <div className='tags'>
{tags.length {tags.map((tag): React.ReactNode => (
? tags.map((tag): React.ReactNode => ( <Tag
<Tag key={tag}
key={tag} label={tag}
label={tag} />
/> ))}
))
: <label>{t('no tags')}</label>
}
</div> </div>
</td> </td>
<td className='number'> <td className='number'>
@ -341,21 +338,8 @@ function Account ({ account: { address, meta }, className, filter, isFavorite, s
} }
export default React.memo(styled(Account)` export default React.memo(styled(Account)`
.accounts--Account-buttons { .tags {
text-align: right;
}
.tags--toggle {
cursor: pointer;
width: 100%; width: 100%;
min-height: 1.5rem; min-height: 1.5rem;
label {
cursor: pointer;
}
}
.name--input {
width: 16rem;
} }
`); `);

View File

@ -179,15 +179,12 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
</td> </td>
<td className='all'> <td className='all'>
<div className='tags'> <div className='tags'>
{tags.length {tags.map((tag): React.ReactNode => (
? tags.map((tag): React.ReactNode => ( <Tag
<Tag key={tag}
key={tag} label={tag}
label={tag} />
/> ))}
))
: <label>{t('no tags')}</label>
}
</div> </div>
</td> </td>
<td className='number'> <td className='number'>
@ -261,16 +258,8 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
} }
export default React.memo(styled(Address)` export default React.memo(styled(Address)`
.addresses--Address-buttons {
text-align: right;
}
.tags { .tags {
width: 100%; width: 100%;
min-height: 1.5rem; min-height: 1.5rem;
} }
.name--input {
width: 16rem;
}
`); `);