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