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
b0fb59e1
Commit
b0fb59e1
authored
Feb 22, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes and tests
parent
34bc7548
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
625 deletions
+27
-625
withdrawals.ts
data/withdrawals.ts
+0
-604
values.yaml
deploy/values/review-l2/values.yaml
+1
-0
Withdrawals.tsx
ui/pages/Withdrawals.tsx
+14
-18
WithdrawalsListItem.tsx
ui/withdrawals/WithdrawalsListItem.tsx
+5
-1
WithdrawalsTableItem.tsx
ui/withdrawals/WithdrawalsTableItem.tsx
+7
-2
No files found.
data/withdrawals.ts
deleted
100644 → 0
View file @
34bc7548
This diff is collapsed.
Click to expand it.
deploy/values/review-l2/values.yaml
View file @
b0fb59e1
...
...
@@ -41,6 +41,7 @@ frontend:
-
"
/verified-contracts"
-
"
/graphiql"
-
"
/output-roots"
-
"
/withdrawals"
resources
:
limits
:
...
...
ui/pages/Withdrawals.tsx
View file @
b0fb59e1
...
...
@@ -26,33 +26,29 @@ const Withdrawals = () => {
return
<
DataFetchAlert
/>;
}
const
text
=
isLoading
?
<
Skeleton
w=
"400px"
h=
"26px"
mb=
{
{
base
:
6
,
lg
:
0
}
}
/>
:
<
Text
mb=
{
{
base
:
6
,
lg
:
0
}
}
>
A total of
{
data
.
total
}
withdrawals found
</
Text
>;
const
bar
=
(
<>
{
isMobile
&&
text
}
<
ActionBar
mt=
{
-
6
}
>
<
Flex
alignItems=
"center"
justifyContent=
"space-between"
w=
"100%"
>
{
!
isMobile
&&
text
}
{
isPaginationVisible
&&
<
Pagination
ml=
"auto"
{
...
pagination
}
/>
}
</
Flex
>
</
ActionBar
>
</>
);
if
(
isLoading
)
{
return
(
<>
{
bar
}
<
Skeleton
w=
{
{
base
:
'
100%
'
,
lg
:
'
320px
'
}
}
h=
"26px"
mb=
{
{
base
:
6
,
lg
:
7
}
}
mt=
{
{
base
:
0
,
lg
:
7
}
}
/>
<
SkeletonList
display=
{
{
base
:
'
block
'
,
lg
:
'
none
'
}
}
/>
<
SkeletonTable
display=
{
{
base
:
'
none
'
,
lg
:
'
block
'
}
}
columns=
{
Array
(
7
).
fill
(
`${ 100 / 7 }%`
)
}
/>
<
SkeletonTable
minW=
"950px"
display=
{
{
base
:
'
none
'
,
lg
:
'
block
'
}
}
columns=
{
Array
(
7
).
fill
(
`${ 100 / 7 }%`
)
}
/>
</>
);
}
const
text
=
<
Text
mb=
{
{
base
:
6
,
lg
:
0
}
}
>
A total of
{
data
.
total
.
toLocaleString
(
'
en
'
)
}
withdrawals found
</
Text
>;
return
(
<>
{
bar
}
{
(
isMobile
||
!
isPaginationVisible
)
&&
text
}
{
isPaginationVisible
&&
(
<
ActionBar
mt=
{
-
6
}
>
<
Flex
alignItems=
"center"
justifyContent=
"space-between"
w=
"100%"
>
{
!
isMobile
&&
text
}
<
Pagination
ml=
"auto"
{
...
pagination
}
/>
</
Flex
>
</
ActionBar
>
)
}
<
Show
below=
"lg"
ssr=
{
false
}
>
{
data
.
items
.
map
((
item
=>
<
WithdrawalsListItem
key=
{
item
.
l2_tx_hash
}
{
...
item
}
/>))
}
</
Show
>
<
Hide
below=
"lg"
ssr=
{
false
}
><
WithdrawalsTable
items=
{
data
.
items
}
top=
{
isPaginationVisible
?
80
:
0
}
/></
Hide
>
</>
...
...
ui/withdrawals/WithdrawalsListItem.tsx
View file @
b0fb59e1
...
...
@@ -64,7 +64,11 @@ const WithdrawalsListItem = ({
{
l1_tx_hash
&&
(
<
HStack
spacing=
{
3
}
width=
"100%"
>
<
Text
fontSize=
"sm"
fontWeight=
{
500
}
whiteSpace=
"nowrap"
>
L1 txn hash
</
Text
>
<
LinkExternal
href=
{
appConfig
.
L2
.
withdrawalUrl
}
><
HashStringShorten
hash=
{
l1_tx_hash
}
/></
LinkExternal
>
<
LinkExternal
href=
{
appConfig
.
L2
.
L1BaseUrl
+
route
({
pathname
:
'
/tx/[hash]
'
,
query
:
{
hash
:
l1_tx_hash
}
})
}
>
<
HashStringShorten
hash=
{
l1_tx_hash
}
/>
</
LinkExternal
>
</
HStack
>
)
}
{
challenge_period_end
&&
(
...
...
ui/withdrawals/WithdrawalsTableItem.tsx
View file @
b0fb59e1
...
...
@@ -60,8 +60,13 @@ const WithdrawalsTableItem = ({
}
</
Td
>
<
Td
verticalAlign=
"middle"
>
{
l1_tx_hash
?
<
LinkExternal
href=
{
appConfig
.
L2
.
withdrawalUrl
}
><
HashStringShorten
hash=
{
l1_tx_hash
}
/></
LinkExternal
>
:
{
l1_tx_hash
?
(
<
LinkExternal
href=
{
appConfig
.
L2
.
L1BaseUrl
+
route
({
pathname
:
'
/tx/[hash]
'
,
query
:
{
hash
:
l1_tx_hash
}
})
}
>
<
HashStringShorten
hash=
{
l1_tx_hash
}
/>
</
LinkExternal
>
)
:
'
N/A
'
}
</
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