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
b60ca63e
Commit
b60ca63e
authored
Jan 26, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename ExternalLink
parent
3f1258f7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
AddressDetails.tsx
ui/address/AddressDetails.tsx
+2
-2
ContractCode.tsx
ui/address/contract/ContractCode.tsx
+2
-2
Transaction.tsx
ui/pages/Transaction.tsx
+2
-2
LinkExternal.tsx
ui/shared/LinkExternal.tsx
+2
-2
No files found.
ui/address/AddressDetails.tsx
View file @
b60ca63e
...
@@ -16,9 +16,9 @@ import AddressLink from 'ui/shared/address/AddressLink';
...
@@ -16,9 +16,9 @@ import AddressLink from 'ui/shared/address/AddressLink';
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
ExternalLink
from
'
ui/shared/ExternalLink
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
LinkExternal
from
'
ui/shared/LinkExternal
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
AddressAddToMetaMask
from
'
./details/AddressAddToMetaMask
'
;
import
AddressAddToMetaMask
from
'
./details/AddressAddToMetaMask
'
;
...
@@ -85,7 +85,7 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
...
@@ -85,7 +85,7 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
<
Text
fontSize=
"sm"
>
Verify with other explorers
</
Text
>
<
Text
fontSize=
"sm"
>
Verify with other explorers
</
Text
>
{
explorers
.
map
((
explorer
)
=>
{
{
explorers
.
map
((
explorer
)
=>
{
const
url
=
new
URL
(
explorer
.
paths
.
address
+
'
/
'
+
router
.
query
.
id
,
explorer
.
baseUrl
);
const
url
=
new
URL
(
explorer
.
paths
.
address
+
'
/
'
+
router
.
query
.
id
,
explorer
.
baseUrl
);
return
<
ExternalLink
key=
{
explorer
.
baseUrl
}
title=
{
explorer
.
title
}
href=
{
url
.
toString
()
}
/>;
return
<
LinkExternal
key=
{
explorer
.
baseUrl
}
title=
{
explorer
.
title
}
href=
{
url
.
toString
()
}
/>;
})
}
})
}
</
Flex
>
</
Flex
>
)
}
)
}
...
...
ui/address/contract/ContractCode.tsx
View file @
b60ca63e
...
@@ -8,7 +8,7 @@ import Address from 'ui/shared/address/Address';
...
@@ -8,7 +8,7 @@ import Address from 'ui/shared/address/Address';
import
AddressIcon
from
'
ui/shared/address/AddressIcon
'
;
import
AddressIcon
from
'
ui/shared/address/AddressIcon
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
ExternalLink
from
'
ui/shared/ExternalLink
'
;
import
LinkExternal
from
'
ui/shared/LinkExternal
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
RawDataSnippet
from
'
ui/shared/RawDataSnippet
'
;
import
RawDataSnippet
from
'
ui/shared/RawDataSnippet
'
;
...
@@ -113,7 +113,7 @@ const ContractCode = () => {
...
@@ -113,7 +113,7 @@ const ContractCode = () => {
{
data
.
is_verified_via_sourcify
&&
(
{
data
.
is_verified_via_sourcify
&&
(
<
Alert
status=
"warning"
whiteSpace=
"pre-wrap"
flexWrap=
"wrap"
>
<
Alert
status=
"warning"
whiteSpace=
"pre-wrap"
flexWrap=
"wrap"
>
<
span
>
This contract has been
{
data
.
is_partially_verified
?
'
partially
'
:
''
}
verified via Sourcify.
</
span
>
<
span
>
This contract has been
{
data
.
is_partially_verified
?
'
partially
'
:
''
}
verified via Sourcify.
</
span
>
{
data
.
sourcify_repo_url
&&
<
ExternalLink
href=
{
data
.
sourcify_repo_url
}
title=
"View contract in Sourcify repository"
fontSize=
"md"
/>
}
{
data
.
sourcify_repo_url
&&
<
LinkExternal
href=
{
data
.
sourcify_repo_url
}
title=
"View contract in Sourcify repository"
fontSize=
"md"
/>
}
</
Alert
>
</
Alert
>
)
}
)
}
{
data
.
is_changed_bytecode
&&
(
{
data
.
is_changed_bytecode
&&
(
...
...
ui/pages/Transaction.tsx
View file @
b60ca63e
...
@@ -9,7 +9,7 @@ import { useAppContext } from 'lib/appContext';
...
@@ -9,7 +9,7 @@ import { useAppContext } from 'lib/appContext';
import
isBrowser
from
'
lib/isBrowser
'
;
import
isBrowser
from
'
lib/isBrowser
'
;
import
networkExplorers
from
'
lib/networks/networkExplorers
'
;
import
networkExplorers
from
'
lib/networks/networkExplorers
'
;
import
TextAd
from
'
ui/shared/ad/TextAd
'
;
import
TextAd
from
'
ui/shared/ad/TextAd
'
;
import
ExternalLink
from
'
ui/shared/ExternalLink
'
;
import
LinkExternal
from
'
ui/shared/LinkExternal
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
RoutedTabs
from
'
ui/shared/RoutedTabs/RoutedTabs
'
;
import
RoutedTabs
from
'
ui/shared/RoutedTabs/RoutedTabs
'
;
...
@@ -48,7 +48,7 @@ const TransactionPageContent = () => {
...
@@ -48,7 +48,7 @@ const TransactionPageContent = () => {
.
filter
((
explorer
)
=>
explorer
.
paths
.
tx
)
.
filter
((
explorer
)
=>
explorer
.
paths
.
tx
)
.
map
((
explorer
)
=>
{
.
map
((
explorer
)
=>
{
const
url
=
new
URL
(
explorer
.
paths
.
tx
+
'
/
'
+
router
.
query
.
id
,
explorer
.
baseUrl
);
const
url
=
new
URL
(
explorer
.
paths
.
tx
+
'
/
'
+
router
.
query
.
id
,
explorer
.
baseUrl
);
return
<
ExternalLink
key=
{
explorer
.
baseUrl
}
title=
{
`Open in ${ explorer.title }`
}
href=
{
url
.
toString
()
}
/>;
return
<
LinkExternal
key=
{
explorer
.
baseUrl
}
title=
{
`Open in ${ explorer.title }`
}
href=
{
url
.
toString
()
}
/>;
});
});
const
additionals
=
(
const
additionals
=
(
...
...
ui/shared/
ExternalLink
.tsx
→
ui/shared/
LinkExternal
.tsx
View file @
b60ca63e
...
@@ -9,7 +9,7 @@ interface Props {
...
@@ -9,7 +9,7 @@ interface Props {
className
?:
string
;
className
?:
string
;
}
}
const
ExternalLink
=
({
href
,
title
,
className
}:
Props
)
=>
{
const
LinkExternal
=
({
href
,
title
,
className
}:
Props
)
=>
{
return
(
return
(
<
Link
className=
{
className
}
fontSize=
"sm"
display=
"inline-flex"
alignItems=
"center"
target=
"_blank"
href=
{
href
}
>
<
Link
className=
{
className
}
fontSize=
"sm"
display=
"inline-flex"
alignItems=
"center"
target=
"_blank"
href=
{
href
}
>
{
title
}
{
title
}
...
@@ -18,4 +18,4 @@ const ExternalLink = ({ href, title, className }: Props) => {
...
@@ -18,4 +18,4 @@ const ExternalLink = ({ href, title, className }: Props) => {
);
);
};
};
export
default
React
.
memo
(
chakra
(
ExternalLink
));
export
default
React
.
memo
(
chakra
(
LinkExternal
));
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