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
5cb5e3be
Commit
5cb5e3be
authored
Apr 18, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix navigation between pages for shibarium deposits and withdrawals views
parent
4ea00c0f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
DepositsTable.tsx
ui/deposits/shibarium/DepositsTable.tsx
+2
-2
ShibariumDeposits.tsx
ui/pages/ShibariumDeposits.tsx
+1
-1
ShibariumWithdrawals.tsx
ui/pages/ShibariumWithdrawals.tsx
+3
-3
WithdrawalsTable.tsx
ui/withdrawals/shibarium/WithdrawalsTable.tsx
+2
-2
No files found.
ui/deposits/shibarium/DepositsTable.tsx
View file @
5cb5e3be
...
@@ -14,7 +14,7 @@ import DepositsTableItem from './DepositsTableItem';
...
@@ -14,7 +14,7 @@ import DepositsTableItem from './DepositsTableItem';
const
DepositsTable
=
({
items
,
top
,
isLoading
}:
Props
)
=>
{
const
DepositsTable
=
({
items
,
top
,
isLoading
}:
Props
)
=>
{
return
(
return
(
<
TableRoot
style=
{
{
tableLayout
:
'
auto
'
}
}
minW=
"950px"
>
<
TableRoot
tableLayout=
"auto"
minW=
"950px"
>
<
TableHeaderSticky
top=
{
top
}
>
<
TableHeaderSticky
top=
{
top
}
>
<
TableRow
>
<
TableRow
>
<
TableColumnHeader
>
L1 block No
</
TableColumnHeader
>
<
TableColumnHeader
>
L1 block No
</
TableColumnHeader
>
...
@@ -26,7 +26,7 @@ const DepositsTable = ({ items, top, isLoading }: Props) => {
...
@@ -26,7 +26,7 @@ const DepositsTable = ({ items, top, isLoading }: Props) => {
</
TableHeaderSticky
>
</
TableHeaderSticky
>
<
TableBody
>
<
TableBody
>
{
items
.
map
((
item
,
index
)
=>
(
{
items
.
map
((
item
,
index
)
=>
(
<
DepositsTableItem
key=
{
item
.
l2_transaction_hash
+
(
isLoading
?
index
:
''
)
}
item=
{
item
}
isLoading=
{
isLoading
}
/>
<
DepositsTableItem
key=
{
`${ item.l2_transaction_hash }-${ index }`
}
item=
{
item
}
isLoading=
{
isLoading
}
/>
))
}
))
}
</
TableBody
>
</
TableBody
>
</
TableRoot
>
</
TableRoot
>
...
...
ui/pages/ShibariumDeposits.tsx
View file @
5cb5e3be
...
@@ -42,7 +42,7 @@ const L2Deposits = () => {
...
@@ -42,7 +42,7 @@ const L2Deposits = () => {
<
Box
hideFrom=
"lg"
>
<
Box
hideFrom=
"lg"
>
{
data
.
items
.
map
(((
item
,
index
)
=>
(
{
data
.
items
.
map
(((
item
,
index
)
=>
(
<
DepositsListItem
<
DepositsListItem
key=
{
item
.
l2_transaction_hash
+
(
isPlaceholderData
?
index
:
''
)
}
key=
{
`${ item.l2_transaction_hash }-${ index }`
}
isLoading=
{
isPlaceholderData
}
isLoading=
{
isPlaceholderData
}
item=
{
item
}
item=
{
item
}
/>
/>
...
...
ui/pages/ShibariumWithdrawals.tsx
View file @
5cb5e3be
...
@@ -14,7 +14,7 @@ import StickyPaginationWithText from 'ui/shared/StickyPaginationWithText';
...
@@ -14,7 +14,7 @@ import StickyPaginationWithText from 'ui/shared/StickyPaginationWithText';
import
WithdrawalsListItem
from
'
ui/withdrawals/shibarium/WithdrawalsListItem
'
;
import
WithdrawalsListItem
from
'
ui/withdrawals/shibarium/WithdrawalsListItem
'
;
import
WithdrawalsTable
from
'
ui/withdrawals/shibarium/WithdrawalsTable
'
;
import
WithdrawalsTable
from
'
ui/withdrawals/shibarium/WithdrawalsTable
'
;
const
L2
Withdrawals
=
()
=>
{
const
Shibarium
Withdrawals
=
()
=>
{
const
{
data
,
isError
,
isPlaceholderData
,
pagination
}
=
useQueryWithPages
({
const
{
data
,
isError
,
isPlaceholderData
,
pagination
}
=
useQueryWithPages
({
resourceName
:
'
shibarium_withdrawals
'
,
resourceName
:
'
shibarium_withdrawals
'
,
options
:
{
options
:
{
...
@@ -42,7 +42,7 @@ const L2Withdrawals = () => {
...
@@ -42,7 +42,7 @@ const L2Withdrawals = () => {
<
Box
hideFrom=
"lg"
>
<
Box
hideFrom=
"lg"
>
{
data
.
items
.
map
(((
item
,
index
)
=>
(
{
data
.
items
.
map
(((
item
,
index
)
=>
(
<
WithdrawalsListItem
<
WithdrawalsListItem
key=
{
item
.
l2_transaction_hash
+
(
isPlaceholderData
?
index
:
''
)
}
key=
{
`${ item.l2_transaction_hash }-${ index }`
}
item=
{
item
}
item=
{
item
}
isLoading=
{
isPlaceholderData
}
isLoading=
{
isPlaceholderData
}
/>
/>
...
@@ -83,4 +83,4 @@ const L2Withdrawals = () => {
...
@@ -83,4 +83,4 @@ const L2Withdrawals = () => {
);
);
};
};
export
default
L2
Withdrawals
;
export
default
Shibarium
Withdrawals
;
ui/withdrawals/shibarium/WithdrawalsTable.tsx
View file @
5cb5e3be
...
@@ -14,7 +14,7 @@ import WithdrawalsTableItem from './WithdrawalsTableItem';
...
@@ -14,7 +14,7 @@ import WithdrawalsTableItem from './WithdrawalsTableItem';
const
WithdrawalsTable
=
({
items
,
top
,
isLoading
}:
Props
)
=>
{
const
WithdrawalsTable
=
({
items
,
top
,
isLoading
}:
Props
)
=>
{
return
(
return
(
<
TableRoot
style=
{
{
tableLayout
:
'
auto
'
}
}
minW=
"950px"
>
<
TableRoot
tableLayout=
"auto"
minW=
"950px"
>
<
TableHeaderSticky
top=
{
top
}
>
<
TableHeaderSticky
top=
{
top
}
>
<
TableRow
>
<
TableRow
>
<
TableColumnHeader
>
L2 block No
</
TableColumnHeader
>
<
TableColumnHeader
>
L2 block No
</
TableColumnHeader
>
...
@@ -26,7 +26,7 @@ const WithdrawalsTable = ({ items, top, isLoading }: Props) => {
...
@@ -26,7 +26,7 @@ const WithdrawalsTable = ({ items, top, isLoading }: Props) => {
</
TableHeaderSticky
>
</
TableHeaderSticky
>
<
TableBody
>
<
TableBody
>
{
items
.
map
((
item
,
index
)
=>
(
{
items
.
map
((
item
,
index
)
=>
(
<
WithdrawalsTableItem
key=
{
item
.
l2_transaction_hash
+
(
isLoading
?
index
:
''
)
}
item=
{
item
}
isLoading=
{
isLoading
}
/>
<
WithdrawalsTableItem
key=
{
`${ item.l2_transaction_hash }-${ index }`
}
item=
{
item
}
isLoading=
{
isLoading
}
/>
))
}
))
}
</
TableBody
>
</
TableBody
>
</
TableRoot
>
</
TableRoot
>
...
...
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