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
6de407de
Unverified
Commit
6de407de
authored
Feb 10, 2025
by
Igor Stuev
Committed by
GitHub
Feb 10, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search: open dapp info for external dapps fix (#2567)
parent
4839af83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
58 deletions
+24
-58
SearchResultListItem.tsx
ui/searchResults/SearchResultListItem.tsx
+12
-29
SearchResultTableItem.tsx
ui/searchResults/SearchResultTableItem.tsx
+12
-29
No files found.
ui/searchResults/SearchResultListItem.tsx
View file @
6de407de
...
...
@@ -24,7 +24,6 @@ import * as UserOpEntity from 'ui/shared/entities/userOp/UserOpEntity';
import
{
ADDRESS_REGEXP
}
from
'
ui/shared/forms/validators/address
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
ListItemMobile
from
'
ui/shared/ListItemMobile/ListItemMobile
'
;
import
type
{
SearchResultAppItem
}
from
'
ui/shared/search/utils
'
;
...
...
@@ -145,34 +144,18 @@ const SearchResultListItem = ({ data, searchTerm, isLoading, addressFormat }: Pr
src=
{
colorMode
===
'
dark
'
&&
data
.
app
.
logoDarkMode
?
data
.
app
.
logoDarkMode
:
data
.
app
.
logo
}
alt=
{
`${ data.app.title } app icon`
}
/>
{
data
.
app
.
external
?
(
<
LinkExternal
href=
{
route
({
pathname
:
'
/apps
'
,
query
:
{
selectedAppId
:
data
.
app
.
id
,
},
})
}
fontWeight=
{
700
}
wordBreak=
"break-all"
isLoading=
{
isLoading
}
onClick=
{
handleLinkClick
}
>
{
title
}
</
LinkExternal
>
)
:
(
<
LinkInternal
href=
{
route
({
pathname
:
'
/apps/[id]
'
,
query
:
{
id
:
data
.
app
.
id
}
})
}
fontWeight=
{
700
}
wordBreak=
"break-all"
isLoading=
{
isLoading
}
onClick=
{
handleLinkClick
}
>
{
title
}
</
LinkInternal
>
)
}
<
LinkInternal
href=
{
data
.
app
.
external
?
route
({
pathname
:
'
/apps
'
,
query
:
{
selectedAppId
:
data
.
app
.
id
}
})
:
route
({
pathname
:
'
/apps/[id]
'
,
query
:
{
id
:
data
.
app
.
id
}
})
}
fontWeight=
{
700
}
wordBreak=
"break-all"
isLoading=
{
isLoading
}
onClick=
{
handleLinkClick
}
>
{
title
}
</
LinkInternal
>
</
Flex
>
);
}
...
...
ui/searchResults/SearchResultTableItem.tsx
View file @
6de407de
...
...
@@ -24,7 +24,6 @@ import * as UserOpEntity from 'ui/shared/entities/userOp/UserOpEntity';
import
{
ADDRESS_REGEXP
}
from
'
ui/shared/forms/validators/address
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
type
{
SearchResultAppItem
}
from
'
ui/shared/search/utils
'
;
import
{
getItemCategory
,
searchItemTitles
}
from
'
ui/shared/search/utils
'
;
...
...
@@ -209,34 +208,18 @@ const SearchResultTableItem = ({ data, searchTerm, isLoading, addressFormat }: P
src=
{
colorMode
===
'
dark
'
&&
data
.
app
.
logoDarkMode
?
data
.
app
.
logoDarkMode
:
data
.
app
.
logo
}
alt=
{
`${ data.app.title } app icon`
}
/>
{
data
.
app
.
external
?
(
<
LinkExternal
href=
{
route
({
pathname
:
'
/apps
'
,
query
:
{
selectedAppId
:
data
.
app
.
id
,
},
})
}
fontWeight=
{
700
}
wordBreak=
"break-all"
isLoading=
{
isLoading
}
onClick=
{
handleLinkClick
}
>
{
title
}
</
LinkExternal
>
)
:
(
<
LinkInternal
href=
{
route
({
pathname
:
'
/apps/[id]
'
,
query
:
{
id
:
data
.
app
.
id
}
})
}
fontWeight=
{
700
}
wordBreak=
"break-all"
isLoading=
{
isLoading
}
onClick=
{
handleLinkClick
}
>
{
title
}
</
LinkInternal
>
)
}
<
LinkInternal
href=
{
data
.
app
.
external
?
route
({
pathname
:
'
/apps
'
,
query
:
{
selectedAppId
:
data
.
app
.
id
}
})
:
route
({
pathname
:
'
/apps/[id]
'
,
query
:
{
id
:
data
.
app
.
id
}
})
}
fontWeight=
{
700
}
wordBreak=
"break-all"
isLoading=
{
isLoading
}
onClick=
{
handleLinkClick
}
>
{
title
}
</
LinkInternal
>
</
Flex
>
</
Td
>
<
Td
fontSize=
"sm"
verticalAlign=
"middle"
colSpan=
{
2
}
>
...
...
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