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
44735178
Commit
44735178
authored
Mar 21, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
margin fix
parent
31ec621b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
OutputRoots.tsx
ui/pages/OutputRoots.tsx
+1
-1
Withdrawals.tsx
ui/pages/Withdrawals.tsx
+8
-3
No files found.
ui/pages/OutputRoots.tsx
View file @
44735178
...
@@ -38,7 +38,7 @@ const OutputRoots = () => {
...
@@ -38,7 +38,7 @@ const OutputRoots = () => {
}
}
return
(
return
(
<
Flex
mb=
{
{
base
:
6
,
lg
:
0
}
}
flexWrap=
"wrap"
>
<
Flex
mb=
{
{
base
:
6
,
lg
:
isPaginationVisible
?
0
:
6
}
}
flexWrap=
"wrap"
>
L2 output index
L2 output index
<
Text
fontWeight=
{
600
}
whiteSpace=
"pre"
>
#
{
data
.
items
[
0
].
l2_output_index
}
</
Text
>
to
<
Text
fontWeight=
{
600
}
whiteSpace=
"pre"
>
#
{
data
.
items
[
0
].
l2_output_index
}
</
Text
>
to
<
Text
fontWeight=
{
600
}
whiteSpace=
"pre"
>
#
{
data
.
items
[
data
.
items
.
length
-
1
].
l2_output_index
}
</
Text
>
<
Text
fontWeight=
{
600
}
whiteSpace=
"pre"
>
#
{
data
.
items
[
data
.
items
.
length
-
1
].
l2_output_index
}
</
Text
>
...
...
ui/pages/Withdrawals.tsx
View file @
44735178
...
@@ -16,10 +16,15 @@ import WithdrawalsTable from 'ui/withdrawals/WithdrawalsTable';
...
@@ -16,10 +16,15 @@ import WithdrawalsTable from 'ui/withdrawals/WithdrawalsTable';
const
Withdrawals
=
()
=>
{
const
Withdrawals
=
()
=>
{
const
isMobile
=
useIsMobile
();
const
isMobile
=
useIsMobile
();
const
{
data
,
isError
,
isLoading
,
isPaginationVisible
,
pagination
}
=
useQueryWithPages
({
// const { data, isError, isLoading, isPaginationVisible, pagination } = useQueryWithPages({
// resourceName: 'withdrawals',
// });
const
{
data
,
isError
,
isLoading
,
pagination
}
=
useQueryWithPages
({
resourceName
:
'
withdrawals
'
,
resourceName
:
'
withdrawals
'
,
});
});
const
isPaginationVisible
=
false
;
const
countersQuery
=
useApiQuery
(
'
withdrawals_count
'
);
const
countersQuery
=
useApiQuery
(
'
withdrawals_count
'
);
const
content
=
data
?.
items
?
(
const
content
=
data
?.
items
?
(
...
@@ -31,14 +36,14 @@ const Withdrawals = () => {
...
@@ -31,14 +36,14 @@ const Withdrawals = () => {
const
text
=
(()
=>
{
const
text
=
(()
=>
{
if
(
countersQuery
.
isLoading
)
{
if
(
countersQuery
.
isLoading
)
{
return
<
Skeleton
w=
{
{
base
:
'
100%
'
,
lg
:
'
320px
'
}
}
h=
"26px"
mb=
{
{
base
:
6
,
lg
:
7
}
}
mt=
{
{
base
:
0
,
lg
:
7
}
}
/>;
return
<
Skeleton
w=
{
{
base
:
'
100%
'
,
lg
:
'
320px
'
}
}
h=
"26px"
mb=
{
6
}
mt=
{
{
base
:
0
,
lg
:
6
}
}
/>;
}
}
if
(
countersQuery
.
isError
)
{
if
(
countersQuery
.
isError
)
{
return
null
;
return
null
;
}
}
return
<
Text
mb=
{
{
base
:
6
,
lg
:
0
}
}
>
A total of
{
countersQuery
.
data
.
toLocaleString
(
'
en
'
)
}
withdrawals found
</
Text
>;
return
<
Text
mb=
{
{
base
:
6
,
lg
:
isPaginationVisible
?
0
:
6
}
}
>
A total of
{
countersQuery
.
data
.
toLocaleString
(
'
en
'
)
}
withdrawals found
</
Text
>;
})();
})();
const
actionBar
=
(
const
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