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
0c3702ee
Commit
0c3702ee
authored
Dec 30, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
77f42ef9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
SearchResults.tsx
ui/pages/SearchResults.tsx
+1
-1
SearchResultListItem.tsx
ui/searchResults/SearchResultListItem.tsx
+2
-2
SearchResultTableItem.tsx
ui/searchResults/SearchResultTableItem.tsx
+3
-3
No files found.
ui/pages/SearchResults.tsx
View file @
0c3702ee
...
@@ -41,7 +41,7 @@ const SearchResultsPageContent = () => {
...
@@ -41,7 +41,7 @@ const SearchResultsPageContent = () => {
<
SkeletonList
/>
<
SkeletonList
/>
</
Show
>
</
Show
>
<
Hide
below=
"lg"
>
<
Hide
below=
"lg"
>
<
SkeletonTable
columns=
{
[
'
33%
'
,
'
34%
'
,
'
33%
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
50%
'
,
'
50%
'
,
'
150px
'
]
}
/>
</
Hide
>
</
Hide
>
</
Box
>
</
Box
>
);
);
...
...
ui/searchResults/SearchResultListItem.tsx
View file @
0c3702ee
...
@@ -28,7 +28,7 @@ const SearchResultListItem = ({ data, searchTerm }: Props) => {
...
@@ -28,7 +28,7 @@ const SearchResultListItem = ({ data, searchTerm }: Props) => {
return
(
return
(
<
Flex
alignItems=
"center"
>
<
Flex
alignItems=
"center"
>
<
TokenLogo
boxSize=
{
6
}
hash=
{
data
.
address
}
name=
{
data
.
name
}
/>
<
TokenLogo
boxSize=
{
6
}
hash=
{
data
.
address
}
name=
{
data
.
name
}
flexShrink=
{
0
}
/>
<
Link
ml=
{
2
}
href=
{
link
(
'
token_index
'
,
{
hash
:
data
.
address
})
}
fontWeight=
{
700
}
>
<
Link
ml=
{
2
}
href=
{
link
(
'
token_index
'
,
{
hash
:
data
.
address
})
}
fontWeight=
{
700
}
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
highlightText
(
name
,
searchTerm
)
}
}
/>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
highlightText
(
name
,
searchTerm
)
}
}
/>
</
Link
>
</
Link
>
...
@@ -41,7 +41,7 @@ const SearchResultListItem = ({ data, searchTerm }: Props) => {
...
@@ -41,7 +41,7 @@ const SearchResultListItem = ({ data, searchTerm }: Props) => {
const
shouldHighlightHash
=
data
.
address
.
toLowerCase
()
===
searchTerm
.
toLowerCase
();
const
shouldHighlightHash
=
data
.
address
.
toLowerCase
()
===
searchTerm
.
toLowerCase
();
return
(
return
(
<
Address
>
<
Address
>
<
AddressIcon
hash=
{
data
.
address
}
mr=
{
2
}
/>
<
AddressIcon
hash=
{
data
.
address
}
mr=
{
2
}
flexShrink=
{
0
}
/>
<
Box
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
display=
"block"
whiteSpace=
"nowrap"
overflow=
"hidden"
>
<
Box
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
display=
"block"
whiteSpace=
"nowrap"
overflow=
"hidden"
>
<
AddressLink
hash=
{
data
.
address
}
fontWeight=
{
700
}
display=
"block"
w=
"100%"
/>
<
AddressLink
hash=
{
data
.
address
}
fontWeight=
{
700
}
display=
"block"
w=
"100%"
/>
</
Box
>
</
Box
>
...
...
ui/searchResults/SearchResultTableItem.tsx
View file @
0c3702ee
...
@@ -28,7 +28,7 @@ const SearchResultTableItem = ({ data, searchTerm }: Props) => {
...
@@ -28,7 +28,7 @@ const SearchResultTableItem = ({ data, searchTerm }: Props) => {
<>
<>
<
Td
fontSize=
"sm"
>
<
Td
fontSize=
"sm"
>
<
Flex
alignItems=
"center"
>
<
Flex
alignItems=
"center"
>
<
TokenLogo
boxSize=
{
6
}
hash=
{
data
.
address
}
name=
{
data
.
name
}
/>
<
TokenLogo
boxSize=
{
6
}
hash=
{
data
.
address
}
name=
{
data
.
name
}
flexShrink=
{
0
}
/>
<
Link
ml=
{
2
}
href=
{
link
(
'
token_index
'
,
{
hash
:
data
.
address
})
}
fontWeight=
{
700
}
>
<
Link
ml=
{
2
}
href=
{
link
(
'
token_index
'
,
{
hash
:
data
.
address
})
}
fontWeight=
{
700
}
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
highlightText
(
name
,
searchTerm
)
}
}
/>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
highlightText
(
name
,
searchTerm
)
}
}
/>
</
Link
>
</
Link
>
...
@@ -51,7 +51,7 @@ const SearchResultTableItem = ({ data, searchTerm }: Props) => {
...
@@ -51,7 +51,7 @@ const SearchResultTableItem = ({ data, searchTerm }: Props) => {
<>
<>
<
Td
fontSize=
"sm"
>
<
Td
fontSize=
"sm"
>
<
Flex
alignItems=
"center"
overflow=
"hidden"
>
<
Flex
alignItems=
"center"
overflow=
"hidden"
>
<
AddressIcon
hash=
{
data
.
address
}
mr=
{
2
}
/>
<
AddressIcon
hash=
{
data
.
address
}
mr=
{
2
}
flexShrink=
{
0
}
/>
<
Link
href=
{
link
(
'
address_index
'
,
{
id
:
data
.
address
})
}
fontWeight=
{
700
}
overflow=
"hidden"
whiteSpace=
"nowrap"
>
<
Link
href=
{
link
(
'
address_index
'
,
{
id
:
data
.
address
})
}
fontWeight=
{
700
}
overflow=
"hidden"
whiteSpace=
"nowrap"
>
<
Box
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
display=
"block"
>
<
Box
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
display=
"block"
>
<
HashStringShortenDynamic
hash=
{
data
.
address
}
/>
<
HashStringShortenDynamic
hash=
{
data
.
address
}
/>
...
@@ -69,7 +69,7 @@ const SearchResultTableItem = ({ data, searchTerm }: Props) => {
...
@@ -69,7 +69,7 @@ const SearchResultTableItem = ({ data, searchTerm }: Props) => {
return
(
return
(
<
Td
colSpan=
{
2
}
fontSize=
"sm"
>
<
Td
colSpan=
{
2
}
fontSize=
"sm"
>
<
Address
>
<
Address
>
<
AddressIcon
hash=
{
data
.
address
}
mr=
{
2
}
/>
<
AddressIcon
hash=
{
data
.
address
}
mr=
{
2
}
flexShrink=
{
0
}
/>
<
mark
>
<
mark
>
<
AddressLink
hash=
{
data
.
address
}
type=
"address"
fontWeight=
{
700
}
/>
<
AddressLink
hash=
{
data
.
address
}
type=
"address"
fontWeight=
{
700
}
/>
</
mark
>
</
mark
>
...
...
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