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
59c5442d
Commit
59c5442d
authored
Jun 02, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up
parent
c0984838
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
0 additions
and
228 deletions
+0
-228
AddressBlocksValidated.tsx
ui/address/AddressBlocksValidated.tsx
+0
-2
AddressInternalTxs.tsx
ui/address/AddressInternalTxs.tsx
+0
-2
AddressLogs.tsx
ui/address/AddressLogs.tsx
+0
-2
AddressTokenTransfers.tsx
ui/address/AddressTokenTransfers.tsx
+0
-5
AddressTxs.tsx
ui/address/AddressTxs.tsx
+0
-1
AddressWithdrawals.tsx
ui/address/AddressWithdrawals.tsx
+0
-2
AddressCoinBalanceHistory.tsx
ui/address/coinBalance/AddressCoinBalanceHistory.tsx
+0
-2
ERC1155Tokens.tsx
ui/address/tokens/ERC1155Tokens.tsx
+0
-2
ERC20Tokens.tsx
ui/address/tokens/ERC20Tokens.tsx
+0
-5
ERC721Tokens.tsx
ui/address/tokens/ERC721Tokens.tsx
+0
-5
BlockWithdrawals.tsx
ui/block/BlockWithdrawals.tsx
+0
-2
BlocksContent.tsx
ui/blocks/BlocksContent.tsx
+0
-2
Accounts.tsx
ui/pages/Accounts.tsx
+0
-2
L2Deposits.tsx
ui/pages/L2Deposits.tsx
+0
-2
L2OutputRoots.tsx
ui/pages/L2OutputRoots.tsx
+0
-2
L2TxnBatches.tsx
ui/pages/L2TxnBatches.tsx
+0
-2
L2Withdrawals.tsx
ui/pages/L2Withdrawals.tsx
+0
-2
VerifiedAddresses.pw.tsx
ui/pages/VerifiedAddresses.pw.tsx
+0
-2
VerifiedAddresses.tsx
ui/pages/VerifiedAddresses.tsx
+0
-2
VerifiedContracts.tsx
ui/pages/VerifiedContracts.tsx
+0
-2
Withdrawals.tsx
ui/pages/Withdrawals.tsx
+0
-2
VerifiedAddresses.pw.tsx_default_address-verification-flow-1.png
...dAddresses.pw.tsx_default_address-verification-flow-1.png
+0
-0
VerifiedAddresses.pw.tsx_default_base-view-mobile-1.png
..._/VerifiedAddresses.pw.tsx_default_base-view-mobile-1.png
+0
-0
VerifiedAddresses.pw.tsx_mobile_base-view-mobile-1.png
...__/VerifiedAddresses.pw.tsx_mobile_base-view-mobile-1.png
+0
-0
DataListDisplay.tsx
ui/shared/DataListDisplay.tsx
+0
-33
SkeletonList.tsx
ui/shared/skeletons/SkeletonList.tsx
+0
-38
SkeletonListAccount.tsx
ui/shared/skeletons/SkeletonListAccount.tsx
+0
-45
SkeletonTable.tsx
ui/shared/skeletons/SkeletonTable.tsx
+0
-33
TokenHolders.tsx
ui/token/TokenHolders/TokenHolders.tsx
+0
-2
TokenInventory.tsx
ui/token/TokenInventory.tsx
+0
-2
TokenTransfer.tsx
ui/token/TokenTransfer/TokenTransfer.tsx
+0
-5
Tokens.tsx
ui/tokens/Tokens.tsx
+0
-2
TxInternals.tsx
ui/tx/TxInternals.tsx
+0
-2
TxState.tsx
ui/tx/TxState.tsx
+0
-2
TxTokenTransfer.tsx
ui/tx/TxTokenTransfer.tsx
+0
-5
TxsContent.tsx
ui/txs/TxsContent.tsx
+0
-9
No files found.
ui/address/AddressBlocksValidated.tsx
View file @
59c5442d
...
@@ -131,9 +131,7 @@ const AddressBlocksValidated = ({ scrollRef }: Props) => {
...
@@ -131,9 +131,7 @@ const AddressBlocksValidated = ({ scrollRef }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
query
.
isError
}
isError=
{
query
.
isError
}
isLoading=
{
false
}
items=
{
query
.
data
?.
items
}
items=
{
query
.
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
[
'
17%
'
,
'
17%
'
,
'
16%
'
,
'
25%
'
,
'
25%
'
]
}
}
emptyText=
"There are no validated blocks for this address."
emptyText=
"There are no validated blocks for this address."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/address/AddressInternalTxs.tsx
View file @
59c5442d
...
@@ -82,9 +82,7 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
...
@@ -82,9 +82,7 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
[
'
15%
'
,
'
15%
'
,
'
10%
'
,
'
20%
'
,
'
20%
'
,
'
20%
'
]
}
}
filterProps=
{
{
emptyFilteredText
:
`Couldn${ apos }t find any transaction that matches your query.`
,
hasActiveFilters
:
Boolean
(
filterValue
)
}
}
filterProps=
{
{
emptyFilteredText
:
`Couldn${ apos }t find any transaction that matches your query.`
,
hasActiveFilters
:
Boolean
(
filterValue
)
}
}
emptyText=
"There are no internal transactions for this address."
emptyText=
"There are no internal transactions for this address."
content=
{
content
}
content=
{
content
}
...
...
ui/address/AddressLogs.tsx
View file @
59c5442d
...
@@ -39,12 +39,10 @@ const AddressLogs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivElement>
...
@@ -39,12 +39,10 @@ const AddressLogs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivElement>
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
emptyText=
"There are no logs for this address."
emptyText=
"There are no logs for this address."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
skeletonProps=
{
{
customSkeleton
:
null
}
}
/>
/>
);
);
};
};
...
...
ui/address/AddressTokenTransfers.tsx
View file @
59c5442d
...
@@ -286,12 +286,7 @@ const AddressTokenTransfers = ({ scrollRef, overloadCount = OVERLOAD_COUNT }: Pr
...
@@ -286,12 +286,7 @@ const AddressTokenTransfers = ({ scrollRef, overloadCount = OVERLOAD_COUNT }: Pr
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
[
'
44px
'
,
'
185px
'
,
'
160px
'
,
'
25%
'
,
'
25%
'
,
'
25%
'
,
'
25%
'
],
}
}
emptyText=
"There are no token transfers."
emptyText=
"There are no token transfers."
filterProps=
{
{
filterProps=
{
{
emptyFilteredText
:
`Couldn${ apos }t find any token transfer that matches your query.`
,
emptyFilteredText
:
`Couldn${ apos }t find any token transfer that matches your query.`
,
...
...
ui/address/AddressTxs.tsx
View file @
59c5442d
...
@@ -184,7 +184,6 @@ const AddressTxs = ({ scrollRef, overloadCount = OVERLOAD_COUNT }: Props) => {
...
@@ -184,7 +184,6 @@ const AddressTxs = ({ scrollRef, overloadCount = OVERLOAD_COUNT }: Props) => {
socketInfoAlert={ socketAlert }
socketInfoAlert={ socketAlert }
socketInfoNum={ newItemsCount }
socketInfoNum={ newItemsCount }
top={ 80 }
top={ 80 }
hasLongSkeleton
/>
/>
</>
</>
);
);
...
...
ui/address/AddressWithdrawals.tsx
View file @
59c5442d
...
@@ -55,9 +55,7 @@ const AddressWithdrawals = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
...
@@ -55,9 +55,7 @@ const AddressWithdrawals = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
Array
(
5
).
fill
(
`${ 100 / 5 }%`
),
skeletonDesktopMinW
:
'
950px
'
}
}
emptyText=
"There are no withdrawals for this address."
emptyText=
"There are no withdrawals for this address."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/address/coinBalance/AddressCoinBalanceHistory.tsx
View file @
59c5442d
...
@@ -71,9 +71,7 @@ const AddressCoinBalanceHistory = ({ query }: Props) => {
...
@@ -71,9 +71,7 @@ const AddressCoinBalanceHistory = ({ query }: Props) => {
<
DataListDisplay
<
DataListDisplay
mt=
{
8
}
mt=
{
8
}
isError=
{
query
.
isError
}
isError=
{
query
.
isError
}
isLoading=
{
false
}
items=
{
query
.
data
?.
items
}
items=
{
query
.
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
25%
'
,
'
25%
'
,
'
25%
'
,
'
25%
'
,
'
120px
'
]
}
}
emptyText=
"There is no coin balance history for this address."
emptyText=
"There is no coin balance history for this address."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/address/tokens/ERC1155Tokens.tsx
View file @
59c5442d
...
@@ -54,12 +54,10 @@ const ERC1155Tokens = ({ tokensQuery }: Props) => {
...
@@ -54,12 +54,10 @@ const ERC1155Tokens = ({ tokensQuery }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
emptyText=
"There are no tokens of selected type."
emptyText=
"There are no tokens of selected type."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
skeletonProps=
{
{
customSkeleton
:
null
}
}
/>
/>
);
);
};
};
...
...
ui/address/tokens/ERC20Tokens.tsx
View file @
59c5442d
...
@@ -46,12 +46,7 @@ const ERC20Tokens = ({ tokensQuery }: Props) => {
...
@@ -46,12 +46,7 @@ const ERC20Tokens = ({ tokensQuery }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
[
'
30%
'
,
'
30%
'
,
'
10%
'
,
'
20%
'
,
'
10%
'
],
}
}
emptyText=
"There are no tokens of selected type."
emptyText=
"There are no tokens of selected type."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/address/tokens/ERC721Tokens.tsx
View file @
59c5442d
...
@@ -46,12 +46,7 @@ const ERC721Tokens = ({ tokensQuery }: Props) => {
...
@@ -46,12 +46,7 @@ const ERC721Tokens = ({ tokensQuery }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
[
'
40%
'
,
'
40%
'
,
'
20%
'
],
}
}
emptyText=
"There are no tokens of selected type."
emptyText=
"There are no tokens of selected type."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/block/BlockWithdrawals.tsx
View file @
59c5442d
...
@@ -45,9 +45,7 @@ const BlockWithdrawals = ({ blockWithdrawalsQuery }: Props) => {
...
@@ -45,9 +45,7 @@ const BlockWithdrawals = ({ blockWithdrawalsQuery }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
blockWithdrawalsQuery
.
isError
}
isError=
{
blockWithdrawalsQuery
.
isError
}
isLoading=
{
false
}
items=
{
blockWithdrawalsQuery
.
data
?.
items
}
items=
{
blockWithdrawalsQuery
.
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
Array
(
4
).
fill
(
`${ 100 / 4 }%`
),
skeletonDesktopMinW
:
'
950px
'
}
}
emptyText=
"There are no withdrawals for this block."
emptyText=
"There are no withdrawals for this block."
content=
{
content
}
content=
{
content
}
/>
/>
...
...
ui/blocks/BlocksContent.tsx
View file @
59c5442d
...
@@ -95,9 +95,7 @@ const BlocksContent = ({ type, query }: Props) => {
...
@@ -95,9 +95,7 @@ const BlocksContent = ({ type, query }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
query
.
isError
}
isError=
{
query
.
isError
}
isLoading=
{
false
}
items=
{
query
.
data
?.
items
}
items=
{
query
.
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
125px
'
,
'
120px
'
,
'
21%
'
,
'
64px
'
,
'
35%
'
,
'
22%
'
,
'
22%
'
]
}
}
emptyText=
"There are no blocks."
emptyText=
"There are no blocks."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/Accounts.tsx
View file @
59c5442d
...
@@ -71,9 +71,7 @@ const Accounts = () => {
...
@@ -71,9 +71,7 @@ const Accounts = () => {
<
PageTitle
title=
"Top accounts"
withTextAd
/>
<
PageTitle
title=
"Top accounts"
withTextAd
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
64px
'
,
'
30%
'
,
'
20%
'
,
'
20%
'
,
'
15%
'
,
'
15%
'
]
}
}
emptyText=
"There are no accounts."
emptyText=
"There are no accounts."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/L2Deposits.tsx
View file @
59c5442d
...
@@ -88,9 +88,7 @@ const L2Deposits = () => {
...
@@ -88,9 +88,7 @@ const L2Deposits = () => {
<
PageTitle
title=
{
`Deposits (L1${ nbsp }${ rightLineArrow }${ nbsp }L2)`
}
withTextAd
/>
<
PageTitle
title=
{
`Deposits (L1${ nbsp }${ rightLineArrow }${ nbsp }L2)`
}
withTextAd
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
Array
(
7
).
fill
(
`${ 100 / 7 }%`
),
skeletonDesktopMinW
:
'
950px
'
}
}
emptyText=
"There are no withdrawals."
emptyText=
"There are no withdrawals."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/L2OutputRoots.tsx
View file @
59c5442d
...
@@ -86,9 +86,7 @@ const L2OutputRoots = () => {
...
@@ -86,9 +86,7 @@ const L2OutputRoots = () => {
<
PageTitle
title=
"Output roots"
withTextAd
/>
<
PageTitle
title=
"Output roots"
withTextAd
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
140px
'
,
'
20%
'
,
'
20%
'
,
'
30%
'
,
'
30%
'
]
}
}
emptyText=
"There are no output roots."
emptyText=
"There are no output roots."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/L2TxnBatches.tsx
View file @
59c5442d
...
@@ -85,9 +85,7 @@ const L2TxnBatches = () => {
...
@@ -85,9 +85,7 @@ const L2TxnBatches = () => {
<
PageTitle
title=
{
`Tx batches (L2${ nbsp }blocks)`
}
withTextAd
/>
<
PageTitle
title=
{
`Tx batches (L2${ nbsp }blocks)`
}
withTextAd
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
170px
'
,
'
170px
'
,
'
160px
'
,
'
100%
'
,
'
150px
'
]
}
}
emptyText=
"There are no tx batches."
emptyText=
"There are no tx batches."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/L2Withdrawals.tsx
View file @
59c5442d
...
@@ -85,9 +85,7 @@ const L2Withdrawals = () => {
...
@@ -85,9 +85,7 @@ const L2Withdrawals = () => {
<
PageTitle
title=
{
`Withdrawals (L2${ nbsp }${ rightLineArrow }${ nbsp }L1)`
}
withTextAd
/>
<
PageTitle
title=
{
`Withdrawals (L2${ nbsp }${ rightLineArrow }${ nbsp }L1)`
}
withTextAd
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
Array
(
7
).
fill
(
`${ 100 / 7 }%`
),
skeletonDesktopMinW
:
'
950px
'
}
}
emptyText=
"There are no withdrawals."
emptyText=
"There are no withdrawals."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/VerifiedAddresses.pw.tsx
View file @
59c5442d
...
@@ -74,8 +74,6 @@ test('address verification flow', async({ mount, page }) => {
...
@@ -74,8 +74,6 @@ test('address verification flow', async({ mount, page }) => {
await
page
.
getByRole
(
'
button
'
,
{
name
:
/continue/i
}).
click
();
await
page
.
getByRole
(
'
button
'
,
{
name
:
/continue/i
}).
click
();
// fill second step
// fill second step
const
option
=
page
.
getByText
(
/sign manually/i
);
await
option
.
click
();
const
signatureInput
=
page
.
getByLabel
(
/signature hash/i
);
const
signatureInput
=
page
.
getByLabel
(
/signature hash/i
);
await
signatureInput
.
fill
(
mocks
.
SIGNATURE
);
await
signatureInput
.
fill
(
mocks
.
SIGNATURE
);
await
page
.
getByRole
(
'
button
'
,
{
name
:
/verify/i
}).
click
();
await
page
.
getByRole
(
'
button
'
,
{
name
:
/verify/i
}).
click
();
...
...
ui/pages/VerifiedAddresses.tsx
View file @
59c5442d
...
@@ -187,12 +187,10 @@ const VerifiedAddresses = () => {
...
@@ -187,12 +187,10 @@ const VerifiedAddresses = () => {
<
AdminSupportText
mt=
{
5
}
/>
<
AdminSupportText
mt=
{
5
}
/>
</
AccountPageDescription
>
</
AccountPageDescription
>
<
DataListDisplay
<
DataListDisplay
isLoading=
{
false
}
isError=
{
addressesQuery
.
isError
||
applicationsQuery
.
isError
}
isError=
{
addressesQuery
.
isError
||
applicationsQuery
.
isError
}
items=
{
addressesQuery
.
data
?.
verifiedAddresses
}
items=
{
addressesQuery
.
data
?.
verifiedAddresses
}
content=
{
content
}
content=
{
content
}
emptyText=
""
emptyText=
""
skeletonProps=
{
{
customSkeleton
:
null
}
}
/>
/>
{
addButton
}
{
addButton
}
<
AddressVerificationModal
<
AddressVerificationModal
...
...
ui/pages/VerifiedContracts.tsx
View file @
59c5442d
...
@@ -135,9 +135,7 @@ const VerifiedContracts = () => {
...
@@ -135,9 +135,7 @@ const VerifiedContracts = () => {
<
VerifiedContractsCounters
/>
<
VerifiedContractsCounters
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
50%
'
,
'
130px
'
,
'
130px
'
,
'
50%
'
,
'
80px
'
,
'
110px
'
]
}
}
emptyText=
"There are no verified contracts."
emptyText=
"There are no verified contracts."
filterProps=
{
{
filterProps=
{
{
emptyFilteredText
:
`Couldn${ apos }t find any contract that matches your query.`
,
emptyFilteredText
:
`Couldn${ apos }t find any contract that matches your query.`
,
...
...
ui/pages/Withdrawals.tsx
View file @
59c5442d
...
@@ -91,9 +91,7 @@ const Withdrawals = () => {
...
@@ -91,9 +91,7 @@ const Withdrawals = () => {
<
PageTitle
title=
"Withdrawals"
withTextAd
/>
<
PageTitle
title=
"Withdrawals"
withTextAd
/>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
Array
(
6
).
fill
(
`${ 100 / 6 }%`
),
skeletonDesktopMinW
:
'
950px
'
}
}
emptyText=
"There are no withdrawals."
emptyText=
"There are no withdrawals."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/pages/__screenshots__/VerifiedAddresses.pw.tsx_default_address-verification-flow-1.png
View replaced file @
c0984838
View file @
59c5442d
79.1 KB
|
W:
|
H:
79.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/VerifiedAddresses.pw.tsx_default_base-view-mobile-1.png
View replaced file @
c0984838
View file @
59c5442d
70.7 KB
|
W:
|
H:
70.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/VerifiedAddresses.pw.tsx_mobile_base-view-mobile-1.png
View replaced file @
c0984838
View file @
59c5442d
64.1 KB
|
W:
|
H:
64.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/shared/DataListDisplay.tsx
View file @
59c5442d
...
@@ -4,16 +4,6 @@ import React from 'react';
...
@@ -4,16 +4,6 @@ import React from 'react';
import
EmptySearchResult
from
'
ui/shared/EmptySearchResult
'
;
import
EmptySearchResult
from
'
ui/shared/EmptySearchResult
'
;
import
DataFetchAlert
from
'
./DataFetchAlert
'
;
import
DataFetchAlert
from
'
./DataFetchAlert
'
;
import
SkeletonList
from
'
./skeletons/SkeletonList
'
;
import
SkeletonTable
from
'
./skeletons/SkeletonTable
'
;
type
SkeletonProps
=
{
customSkeleton
:
React
.
ReactNode
}
|
{
skeletonDesktopColumns
:
Array
<
string
>
;
isLongSkeleton
?:
boolean
;
skeletonDesktopMinW
?:
string
;
}
type
FilterProps
=
{
type
FilterProps
=
{
hasActiveFilters
:
boolean
;
hasActiveFilters
:
boolean
;
...
@@ -22,13 +12,11 @@ type FilterProps = {
...
@@ -22,13 +12,11 @@ type FilterProps = {
type
Props
=
{
type
Props
=
{
isError
:
boolean
;
isError
:
boolean
;
isLoading
:
boolean
;
items
?:
Array
<
unknown
>
;
items
?:
Array
<
unknown
>
;
emptyText
:
string
;
emptyText
:
string
;
actionBar
?:
React
.
ReactNode
;
actionBar
?:
React
.
ReactNode
;
content
:
React
.
ReactNode
;
content
:
React
.
ReactNode
;
className
?:
string
;
className
?:
string
;
skeletonProps
:
SkeletonProps
;
filterProps
?:
FilterProps
;
filterProps
?:
FilterProps
;
}
}
...
@@ -37,27 +25,6 @@ const DataListDisplay = (props: Props) => {
...
@@ -37,27 +25,6 @@ const DataListDisplay = (props: Props) => {
return
<
DataFetchAlert
className=
{
props
.
className
}
/>;
return
<
DataFetchAlert
className=
{
props
.
className
}
/>;
}
}
if
(
props
.
isLoading
)
{
return
(
<
Box
className=
{
props
.
className
}
>
{
props
.
actionBar
}
{
'
customSkeleton
'
in
props
.
skeletonProps
&&
props
.
skeletonProps
.
customSkeleton
}
{
'
skeletonDesktopColumns
'
in
props
.
skeletonProps
&&
(
<>
<
SkeletonList
display=
{
{
base
:
'
block
'
,
lg
:
'
none
'
}
}
/>
<
SkeletonTable
display=
{
{
base
:
'
none
'
,
lg
:
'
block
'
}
}
columns=
{
props
.
skeletonProps
.
skeletonDesktopColumns
||
[]
}
isLong=
{
props
.
skeletonProps
.
isLongSkeleton
}
minW=
{
props
.
skeletonProps
.
skeletonDesktopMinW
}
/>
</>
)
}
</
Box
>
);
}
if
(
props
.
filterProps
?.
hasActiveFilters
&&
!
props
.
items
?.
length
)
{
if
(
props
.
filterProps
?.
hasActiveFilters
&&
!
props
.
items
?.
length
)
{
return
(
return
(
<
Box
className=
{
props
.
className
}
>
<
Box
className=
{
props
.
className
}
>
...
...
ui/shared/skeletons/SkeletonList.tsx
deleted
100644 → 0
View file @
c0984838
import
{
Box
,
Flex
,
Skeleton
,
SkeletonCircle
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
const
SkeletonList
=
({
className
}:
{
className
?:
string
})
=>
{
return
(
<
Box
className=
{
className
}
>
{
Array
.
from
(
Array
(
2
)).
map
((
item
,
index
)
=>
(
<
Flex
key=
{
index
}
rowGap=
{
4
}
flexDirection=
"column"
paddingY=
{
6
}
borderTopWidth=
"1px"
borderColor=
"divider"
_last=
{
{
borderBottomWidth
:
'
0px
'
,
}
}
>
<
Flex
h=
{
4
}
>
<
Skeleton
w=
"30%"
mr=
{
2
}
borderRadius=
"full"
/>
<
Skeleton
w=
"15%"
borderRadius=
"full"
/>
</
Flex
>
<
Flex
h=
{
4
}
>
<
SkeletonCircle
boxSize=
{
4
}
mr=
{
2
}
flexShrink=
{
0
}
/>
<
Skeleton
flexGrow=
{
1
}
mr=
{
3
}
borderRadius=
"full"
/>
<
Skeleton
w=
{
6
}
mr=
{
3
}
borderRadius=
"full"
/>
<
SkeletonCircle
boxSize=
{
4
}
mr=
{
2
}
flexShrink=
{
0
}
/>
<
Skeleton
flexGrow=
{
1
}
mr=
{
3
}
borderRadius=
"full"
/>
</
Flex
>
<
Skeleton
w=
"75%"
h=
{
4
}
borderRadius=
"full"
/>
<
Skeleton
w=
"60%"
h=
{
4
}
borderRadius=
"full"
/>
</
Flex
>
))
}
</
Box
>
);
};
export
default
chakra
(
SkeletonList
);
ui/shared/skeletons/SkeletonListAccount.tsx
deleted
100644 → 0
View file @
c0984838
import
{
Box
,
Flex
,
Skeleton
,
SkeletonCircle
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
interface
Props
{
showFooterSlot
?:
boolean
;
}
const
SkeletonListAccount
=
({
showFooterSlot
}:
Props
)
=>
{
return
(
<
Box
>
{
Array
.
from
(
Array
(
2
)).
map
((
item
,
index
)
=>
(
<
Flex
key=
{
index
}
rowGap=
{
3
}
flexDirection=
"column"
paddingY=
{
6
}
borderTopWidth=
"1px"
borderColor=
"divider"
_last=
{
{
borderBottomWidth
:
'
0px
'
,
}
}
>
<
Flex
columnGap=
{
2
}
w=
"100%"
alignItems=
"center"
>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
<
Skeleton
h=
{
4
}
w=
"100%"
/>
</
Flex
>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
Flex
columnGap=
{
3
}
mt=
{
7
}
>
{
showFooterSlot
&&
(
<
Flex
alignItems=
"center"
columnGap=
{
2
}
>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
</
Flex
>
)
}
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
ml=
"auto"
/>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
</
Flex
>
</
Flex
>
))
}
</
Box
>
);
};
export
default
SkeletonListAccount
;
ui/shared/skeletons/SkeletonTable.tsx
deleted
100644 → 0
View file @
c0984838
import
{
Box
,
HStack
,
Skeleton
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
interface
Props
{
columns
:
Array
<
string
>
;
className
?:
string
;
isLong
?:
boolean
;
}
const
SkeletonTable
=
({
columns
,
className
,
isLong
}:
Props
)
=>
{
const
rowsNum
=
isLong
?
50
:
3
;
return
(
<
Box
className=
{
className
}
>
<
Skeleton
height=
{
10
}
width=
"100%"
borderBottomLeftRadius=
"none"
borderBottomRightRadius=
"none"
/>
{
Array
.
from
(
Array
(
rowsNum
)).
map
((
item
,
index
)
=>
(
<
HStack
key=
{
index
}
spacing=
{
6
}
marginTop=
{
8
}
>
{
columns
.
map
((
width
,
index
)
=>
(
<
Skeleton
key=
{
index
}
height=
{
5
}
width=
{
width
}
flexShrink=
{
width
.
includes
(
'
%
'
)
?
'
initial
'
:
0
}
borderRadius=
"full"
/>
))
}
</
HStack
>
))
}
</
Box
>
);
};
export
default
React
.
memo
(
chakra
(
SkeletonTable
));
ui/token/TokenHolders/TokenHolders.tsx
View file @
59c5442d
...
@@ -60,9 +60,7 @@ const TokenHoldersContent = ({ holdersQuery, token }: Props) => {
...
@@ -60,9 +60,7 @@ const TokenHoldersContent = ({ holdersQuery, token }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
holdersQuery
.
isError
}
isError=
{
holdersQuery
.
isError
}
isLoading=
{
false
}
items=
{
holdersQuery
.
data
?.
items
}
items=
{
holdersQuery
.
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
100%
'
,
'
300px
'
,
'
175px
'
]
}
}
emptyText=
"There are no holders for this token."
emptyText=
"There are no holders for this token."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
ui/token/TokenInventory.tsx
View file @
59c5442d
...
@@ -50,12 +50,10 @@ const TokenInventory = ({ inventoryQuery }: Props) => {
...
@@ -50,12 +50,10 @@ const TokenInventory = ({ inventoryQuery }: Props) => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
inventoryQuery
.
isError
}
isError=
{
inventoryQuery
.
isError
}
isLoading=
{
false
}
items=
{
items
}
items=
{
items
}
emptyText=
"There are no tokens."
emptyText=
"There are no tokens."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
skeletonProps=
{
{
customSkeleton
:
null
}
}
/>
/>
);
);
};
};
...
...
ui/token/TokenTransfer/TokenTransfer.tsx
View file @
59c5442d
...
@@ -99,12 +99,7 @@ const TokenTransfer = ({ transfersQuery, tokenId, token }: Props) => {
...
@@ -99,12 +99,7 @@ const TokenTransfer = ({ transfersQuery, tokenId, token }: Props) => {
return (
return (
<DataListDisplay
<DataListDisplay
isError={ isError }
isError={ isError }
isLoading={ false }
items={ data?.items }
items={ data?.items }
skeletonProps={{
isLongSkeleton: true,
skeletonDesktopColumns: [ '45%', '15%', '36px', '15%', '25%' ],
}}
emptyText="There are no token transfers."
emptyText="There are no token transfers."
content={ content }
content={ content }
actionBar={ actionBar }
actionBar={ actionBar }
...
...
ui/tokens/Tokens.tsx
View file @
59c5442d
...
@@ -116,9 +116,7 @@ const Tokens = () => {
...
@@ -116,9 +116,7 @@ const Tokens = () => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
25px
'
,
'
33%
'
,
'
33%
'
,
'
33%
'
,
'
110px
'
]
}
}
emptyText=
"There are no tokens."
emptyText=
"There are no tokens."
filterProps=
{
{
filterProps=
{
{
emptyFilteredText
:
`Couldn${ apos }t find token that matches your filter query.`
,
emptyFilteredText
:
`Couldn${ apos }t find token that matches your filter query.`
,
...
...
ui/tx/TxInternals.tsx
View file @
59c5442d
...
@@ -130,9 +130,7 @@ const TxInternals = () => {
...
@@ -130,9 +130,7 @@ const TxInternals = () => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
||
txInfo
.
isError
}
isError=
{
isError
||
txInfo
.
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
skeletonDesktopColumns
:
[
'
28%
'
,
'
20%
'
,
'
24px
'
,
'
20%
'
,
'
16%
'
,
'
16%
'
]
}
}
emptyText=
"There are no internal transactions for this transaction."
emptyText=
"There are no internal transactions for this transaction."
// filterProps={{
// filterProps={{
// emptyFilteredText: `Couldn${ apos }t find any transaction that matches your query.`.
// emptyFilteredText: `Couldn${ apos }t find any transaction that matches your query.`.
...
...
ui/tx/TxState.tsx
View file @
59c5442d
...
@@ -45,11 +45,9 @@ const TxState = () => {
...
@@ -45,11 +45,9 @@ const TxState = () => {
</
Text
>
</
Text
>
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
}
items=
{
data
}
emptyText=
"There are no state changes for this transaction."
emptyText=
"There are no state changes for this transaction."
content=
{
content
}
content=
{
content
}
skeletonProps=
{
{
customSkeleton
:
null
}
}
/>
/>
</>
</>
);
);
...
...
ui/tx/TxTokenTransfer.tsx
View file @
59c5442d
...
@@ -84,12 +84,7 @@ const TxTokenTransfer = () => {
...
@@ -84,12 +84,7 @@ const TxTokenTransfer = () => {
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
txsInfo
.
isError
||
tokenTransferQuery
.
isError
}
isError=
{
txsInfo
.
isError
||
tokenTransferQuery
.
isError
}
isLoading=
{
false
}
items=
{
tokenTransferQuery
.
data
?.
items
}
items=
{
tokenTransferQuery
.
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
true
,
skeletonDesktopColumns
:
[
'
185px
'
,
'
25%
'
,
'
25%
'
,
'
25%
'
,
'
25%
'
],
}
}
emptyText=
"There are no token transfers."
emptyText=
"There are no token transfers."
filterProps=
{
{
filterProps=
{
{
emptyFilteredText
:
`Couldn${ apos }t find any token transfer that matches your query.`
,
emptyFilteredText
:
`Couldn${ apos }t find any token transfer that matches your query.`
,
...
...
ui/txs/TxsContent.tsx
View file @
59c5442d
...
@@ -30,7 +30,6 @@ type Props = {
...
@@ -30,7 +30,6 @@ type Props = {
filter
?:
React
.
ReactNode
;
filter
?:
React
.
ReactNode
;
enableTimeIncrement
?:
boolean
;
enableTimeIncrement
?:
boolean
;
top
?:
number
;
top
?:
number
;
hasLongSkeleton
?:
boolean
;
}
}
const
TxsContent
=
({
const
TxsContent
=
({
...
@@ -42,7 +41,6 @@ const TxsContent = ({
...
@@ -42,7 +41,6 @@ const TxsContent = ({
socketInfoNum
,
socketInfoNum
,
currentAddress
,
currentAddress
,
enableTimeIncrement
,
enableTimeIncrement
,
hasLongSkeleton
,
top
,
top
,
}:
Props
)
=>
{
}:
Props
)
=>
{
const
{
data
,
isPlaceholderData
,
isError
,
setSortByField
,
setSortByValue
,
sorting
}
=
useTxsSort
(
query
);
const
{
data
,
isPlaceholderData
,
isError
,
setSortByField
,
setSortByValue
,
sorting
}
=
useTxsSort
(
query
);
...
@@ -107,14 +105,7 @@ const TxsContent = ({
...
@@ -107,14 +105,7 @@ const TxsContent = ({
return
(
return
(
<
DataListDisplay
<
DataListDisplay
isError=
{
isError
}
isError=
{
isError
}
isLoading=
{
false
}
items=
{
data
?.
items
}
items=
{
data
?.
items
}
skeletonProps=
{
{
isLongSkeleton
:
hasLongSkeleton
,
skeletonDesktopColumns
:
showBlockInfo
?
[
'
32px
'
,
'
22%
'
,
'
160px
'
,
'
20%
'
,
'
18%
'
,
'
292px
'
,
'
20%
'
,
'
20%
'
]
:
[
'
32px
'
,
'
22%
'
,
'
160px
'
,
'
20%
'
,
'
292px
'
,
'
20%
'
,
'
20%
'
],
}
}
emptyText=
"There are no transactions."
emptyText=
"There are no transactions."
content=
{
content
}
content=
{
content
}
actionBar=
{
actionBar
}
actionBar=
{
actionBar
}
...
...
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