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
bad38f01
Commit
bad38f01
authored
Feb 17, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
external link custom content
parent
9a551936
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
AddressDetails.tsx
ui/address/AddressDetails.tsx
+1
-1
ContractCode.tsx
ui/address/contract/ContractCode.tsx
+1
-1
Transaction.tsx
ui/pages/Transaction.tsx
+1
-1
LinkExternal.tsx
ui/shared/LinkExternal.tsx
+3
-3
No files found.
ui/address/AddressDetails.tsx
View file @
bad38f01
...
...
@@ -92,7 +92,7 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
<
Text
fontSize=
"sm"
>
Verify with other explorers
</
Text
>
{
explorers
.
map
((
explorer
)
=>
{
const
url
=
new
URL
(
explorer
.
paths
.
address
+
'
/
'
+
addressHash
,
explorer
.
baseUrl
);
return
<
LinkExternal
key=
{
explorer
.
baseUrl
}
title=
{
explorer
.
title
}
href=
{
url
.
toString
()
}
/
>;
return
<
LinkExternal
key=
{
explorer
.
baseUrl
}
href=
{
url
.
toString
()
}
>
{
explorer
.
title
}
</
LinkExternal
>;
})
}
</
Flex
>
)
}
...
...
ui/address/contract/ContractCode.tsx
View file @
bad38f01
...
...
@@ -115,7 +115,7 @@ const ContractCode = () => {
{
data
.
is_verified_via_sourcify
&&
(
<
Alert
status=
"warning"
whiteSpace=
"pre-wrap"
flexWrap=
"wrap"
>
<
span
>
This contract has been
{
data
.
is_partially_verified
?
'
partially
'
:
''
}
verified via Sourcify.
</
span
>
{
data
.
sourcify_repo_url
&&
<
LinkExternal
href=
{
data
.
sourcify_repo_url
}
title=
"View contract in Sourcify repository"
fontSize=
"md"
/
>
}
{
data
.
sourcify_repo_url
&&
<
LinkExternal
href=
{
data
.
sourcify_repo_url
}
fontSize=
"md"
>
View contract in Sourcify repository
</
LinkExternal
>
}
</
Alert
>
)
}
{
data
.
is_changed_bytecode
&&
(
...
...
ui/pages/Transaction.tsx
View file @
bad38f01
...
...
@@ -46,7 +46,7 @@ const TransactionPageContent = () => {
.
filter
((
explorer
)
=>
explorer
.
paths
.
tx
)
.
map
((
explorer
)
=>
{
const
url
=
new
URL
(
explorer
.
paths
.
tx
+
'
/
'
+
hash
,
explorer
.
baseUrl
);
return
<
LinkExternal
key=
{
explorer
.
baseUrl
}
title=
{
`Open in ${ explorer.title }`
}
href=
{
url
.
toString
()
}
/
>;
return
<
LinkExternal
key=
{
explorer
.
baseUrl
}
href=
{
url
.
toString
()
}
>
{
`Open in ${ explorer.title }`
}
</
LinkExternal
>;
});
const
additionals
=
(
...
...
ui/shared/LinkExternal.tsx
View file @
bad38f01
...
...
@@ -5,14 +5,14 @@ import arrowIcon from 'icons/arrows/north-east.svg';
interface
Props
{
href
:
string
;
title
:
string
;
className
?:
string
;
children
:
React
.
ReactNode
;
}
const
LinkExternal
=
({
href
,
title
,
className
}:
Props
)
=>
{
const
LinkExternal
=
({
href
,
children
,
className
}:
Props
)
=>
{
return
(
<
Link
className=
{
className
}
fontSize=
"sm"
display=
"inline-flex"
alignItems=
"center"
target=
"_blank"
href=
{
href
}
>
{
title
}
{
children
}
<
Icon
as=
{
arrowIcon
}
boxSize=
{
4
}
/>
</
Link
>
);
...
...
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