Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
a7424c63
Commit
a7424c63
authored
Feb 23, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not possible to remove address filter in token inventory for an address with no NFTs
Fixes #1514
parent
98d3bbcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
AddressCollections.tsx
ui/address/tokens/AddressCollections.tsx
+1
-1
EmptySearchResult.tsx
ui/shared/EmptySearchResult.tsx
+6
-7
TokenInventory.tsx
ui/token/TokenInventory.tsx
+4
-0
No files found.
ui/address/tokens/AddressCollections.tsx
View file @
a7424c63
...
...
@@ -33,7 +33,7 @@ const AddressCollections = ({ collectionsQuery, address, hasActiveFilters }: Pro
</
ActionBar
>
);
const
content
=
data
?.
items
?
data
?.
items
.
map
((
item
,
index
)
=>
{
const
content
=
data
?.
items
?
data
?.
items
.
filter
((
item
)
=>
item
.
token_instances
.
length
>
0
).
map
((
item
,
index
)
=>
{
const
collectionUrl
=
route
({
pathname
:
'
/token/[hash]
'
,
query
:
{
...
...
ui/shared/EmptySearchResult.tsx
View file @
a7424c63
import
{
Box
,
Heading
,
Text
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Heading
,
Text
,
Icon
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
// This icon doesn't work properly when it is in the sprite
// Probably because of radial gradient
// eslint-disable-next-line no-restricted-imports
import
emptySearchResultIcon
from
'
icons/empty_search_result.svg
'
;
interface
Props
{
text
:
string
|
JSX
.
Element
;
...
...
@@ -14,11 +17,7 @@ const EmptySearchResult = ({ text }: Props) => {
flexDirection=
"column"
alignItems=
"center"
>
<
IconSvg
name=
"empty_search_result"
boxSize=
{
60
}
display=
"block"
/>
<
Icon
as=
{
emptySearchResultIcon
}
boxSize=
{
60
}
/>
<
Heading
as=
"h3"
...
...
ui/token/TokenInventory.tsx
View file @
a7424c63
...
...
@@ -83,6 +83,10 @@ const TokenInventory = ({ inventoryQuery, tokenQuery, ownerFilter }: Props) => {
isError=
{
inventoryQuery
.
isError
}
items=
{
items
}
emptyText=
"There are no tokens."
filterProps=
{
{
hasActiveFilters
:
Boolean
(
ownerFilter
),
emptyFilteredText
:
'
No tokens found for the selected owner.
'
,
}
}
content=
{
content
}
actionBar=
{
actionBar
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment