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
6e1ae251
Commit
6e1ae251
authored
Sep 05, 2022
by
tom
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of github.com:tom2drum/block-scout into mobile-view-pages
parents
420cea06
be1f9f3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
AddressLinkWithTooltip.tsx
ui/shared/AddressLinkWithTooltip.tsx
+12
-2
TransactionSnippet.tsx
ui/shared/TransactionSnippet.tsx
+1
-1
No files found.
ui/shared/AddressLinkWithTooltip.tsx
View file @
6e1ae251
...
@@ -8,9 +8,19 @@ import CopyToClipboard from './CopyToClipboard';
...
@@ -8,9 +8,19 @@ import CopyToClipboard from './CopyToClipboard';
const
FONT_WEIGHT
=
'
600
'
;
const
FONT_WEIGHT
=
'
600
'
;
const
AddressLinkWithTooltip
=
({
address
}:
{
address
:
string
})
=>
{
type
Props
=
{
address
:
string
;
type
?:
'
address
'
|
'
transaction
'
;
}
const
AddressLinkWithTooltip
=
({
address
,
type
=
'
address
'
}:
Props
)
=>
{
const
basePath
=
useBasePath
();
const
basePath
=
useBasePath
();
const
url
=
basePath
+
'
/address/
'
+
address
+
'
/tokens#address-tabs
'
;
let
url
;
if
(
type
===
'
transaction
'
)
{
url
=
basePath
+
'
/tx/
'
+
address
;
}
else
{
url
=
basePath
+
'
/address/
'
+
address
+
'
/tokens#address-tabs
'
;
}
return
(
return
(
<
HStack
spacing=
{
2
}
alignContent=
"center"
overflow=
"hidden"
maxW=
"100%"
>
<
HStack
spacing=
{
2
}
alignContent=
"center"
overflow=
"hidden"
maxW=
"100%"
>
<
Link
<
Link
...
...
ui/shared/TransactionSnippet.tsx
View file @
6e1ae251
...
@@ -13,7 +13,7 @@ const TransactionSnippet = ({ hash }: Props) => {
...
@@ -13,7 +13,7 @@ const TransactionSnippet = ({ hash }: Props) => {
<
HStack
spacing=
{
2
}
overflow=
"hidden"
alignItems=
"start"
maxW=
"100%"
>
<
HStack
spacing=
{
2
}
overflow=
"hidden"
alignItems=
"start"
maxW=
"100%"
>
<
Icon
as=
{
transactionIcon
}
boxSize=
{
6
}
color=
{
useColorModeValue
(
'
gray.500
'
,
'
gray.400
'
)
}
/>
<
Icon
as=
{
transactionIcon
}
boxSize=
{
6
}
color=
{
useColorModeValue
(
'
gray.500
'
,
'
gray.400
'
)
}
/>
<
Box
overflow=
"hidden"
>
<
Box
overflow=
"hidden"
>
<
AddressLinkWithTooltip
address=
{
hash
}
/>
<
AddressLinkWithTooltip
address=
{
hash
}
type=
"transaction"
/>
</
Box
>
</
Box
>
</
HStack
>
</
HStack
>
);
);
...
...
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