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
a96eabdb
Commit
a96eabdb
authored
Jun 09, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add "copy to clipboard" to verified contracts list items
parent
2ae0217f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
VerifiedContracts.pw.tsx_default_base-view-mobile-1.png
..._/VerifiedContracts.pw.tsx_default_base-view-mobile-1.png
+0
-0
VerifiedContracts.pw.tsx_mobile_base-view-mobile-1.png
...__/VerifiedContracts.pw.tsx_mobile_base-view-mobile-1.png
+0
-0
VerifiedContractsListItem.tsx
ui/verifiedContracts/VerifiedContractsListItem.tsx
+2
-0
VerifiedContractsTableItem.tsx
ui/verifiedContracts/VerifiedContractsTableItem.tsx
+7
-3
No files found.
ui/pages/__screenshots__/VerifiedContracts.pw.tsx_default_base-view-mobile-1.png
View replaced file @
2ae0217f
View file @
a96eabdb
56 KB
|
W:
|
H:
56.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/VerifiedContracts.pw.tsx_mobile_base-view-mobile-1.png
View replaced file @
2ae0217f
View file @
a96eabdb
68 KB
|
W:
|
H:
68.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/verifiedContracts/VerifiedContractsListItem.tsx
View file @
a96eabdb
...
@@ -13,6 +13,7 @@ import Address from 'ui/shared/address/Address';
...
@@ -13,6 +13,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
Icon
from
'
ui/shared/chakra/Icon
'
;
import
Icon
from
'
ui/shared/chakra/Icon
'
;
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
ListItemMobile
from
'
ui/shared/ListItemMobile/ListItemMobile
'
;
import
ListItemMobile
from
'
ui/shared/ListItemMobile/ListItemMobile
'
;
...
@@ -34,6 +35,7 @@ const VerifiedContractsListItem = ({ data, isLoading }: Props) => {
...
@@ -34,6 +35,7 @@ const VerifiedContractsListItem = ({ data, isLoading }: Props) => {
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
ml=
"auto"
>
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
ml=
"auto"
>
<
HashStringShorten
hash=
{
data
.
address
.
hash
}
isTooltipDisabled
/>
<
HashStringShorten
hash=
{
data
.
address
.
hash
}
isTooltipDisabled
/>
</
Skeleton
>
</
Skeleton
>
<
CopyToClipboard
text=
{
data
.
address
.
hash
}
ml=
{
-
1
}
isLoading=
{
isLoading
}
/>
</
Address
>
</
Address
>
<
Flex
columnGap=
{
3
}
>
<
Flex
columnGap=
{
3
}
>
<
Skeleton
isLoaded=
{
!
isLoading
}
fontWeight=
{
500
}
>
Balance
{
appConfig
.
network
.
currency
.
symbol
}
</
Skeleton
>
<
Skeleton
isLoaded=
{
!
isLoading
}
fontWeight=
{
500
}
>
Balance
{
appConfig
.
network
.
currency
.
symbol
}
</
Skeleton
>
...
...
ui/verifiedContracts/VerifiedContractsTableItem.tsx
View file @
a96eabdb
...
@@ -12,6 +12,7 @@ import dayjs from 'lib/date/dayjs';
...
@@ -12,6 +12,7 @@ import dayjs from 'lib/date/dayjs';
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
Icon
from
'
ui/shared/chakra/Icon
'
;
import
Icon
from
'
ui/shared/chakra/Icon
'
;
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
interface
Props
{
interface
Props
{
...
@@ -31,9 +32,12 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => {
...
@@ -31,9 +32,12 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => {
<
AddressIcon
address=
{
data
.
address
}
isLoading=
{
isLoading
}
/>
<
AddressIcon
address=
{
data
.
address
}
isLoading=
{
isLoading
}
/>
<
Flex
columnGap=
{
2
}
flexWrap=
"wrap"
w=
"calc(100% - 32px)"
>
<
Flex
columnGap=
{
2
}
flexWrap=
"wrap"
w=
"calc(100% - 32px)"
>
<
AddressLink
hash=
{
data
.
address
.
hash
}
type=
"address"
alias=
{
data
.
address
.
name
}
isLoading=
{
isLoading
}
my=
{
1
}
/>
<
AddressLink
hash=
{
data
.
address
.
hash
}
type=
"address"
alias=
{
data
.
address
.
name
}
isLoading=
{
isLoading
}
my=
{
1
}
/>
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
my=
{
1
}
>
<
Flex
alignItems=
"center"
>
<
HashStringShorten
hash=
{
data
.
address
.
hash
}
isTooltipDisabled
/>
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
my=
{
1
}
>
</
Skeleton
>
<
HashStringShorten
hash=
{
data
.
address
.
hash
}
isTooltipDisabled
/>
</
Skeleton
>
<
CopyToClipboard
text=
{
data
.
address
.
hash
}
isLoading=
{
isLoading
}
/>
</
Flex
>
</
Flex
>
</
Flex
>
</
Flex
>
</
Flex
>
</
Td
>
</
Td
>
...
...
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