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
e13f04e4
Commit
e13f04e4
authored
Nov 08, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix table header
parent
e98ecfa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
TokenTransfer.tsx
ui/shared/TokenTransfer/TokenTransfer.tsx
+3
-3
TokenTransferTable.tsx
ui/shared/TokenTransfer/TokenTransferTable.tsx
+3
-2
No files found.
ui/shared/TokenTransfer/TokenTransfer.tsx
View file @
e13f04e4
...
...
@@ -34,6 +34,8 @@ const TokenTransfer = ({ isLoading: isLoadingProp, isDisabled, queryName, queryI
options
:
{
enabled
:
!
isDisabled
},
});
const
isPaginatorHidden
=
pagination
.
page
===
1
&&
!
pagination
.
hasNextPage
;
const
content
=
(()
=>
{
if
(
isLoading
||
isLoadingProp
)
{
return
(
...
...
@@ -64,7 +66,7 @@ const TokenTransfer = ({ isLoading: isLoadingProp, isDisabled, queryName, queryI
return
(
<>
<
Hide
below=
"lg"
>
<
TokenTransferTable
data=
{
items
}
baseAddress=
{
baseAddress
}
showTxInfo=
{
showTxInfo
}
/>
<
TokenTransferTable
data=
{
items
}
baseAddress=
{
baseAddress
}
showTxInfo=
{
showTxInfo
}
top=
{
isPaginatorHidden
?
0
:
80
}
/>
</
Hide
>
<
Show
below=
"lg"
>
<
TokenTransferList
data=
{
items
}
baseAddress=
{
baseAddress
}
showTxInfo=
{
showTxInfo
}
/>
...
...
@@ -73,8 +75,6 @@ const TokenTransfer = ({ isLoading: isLoadingProp, isDisabled, queryName, queryI
);
})();
const
isPaginatorHidden
=
pagination
.
page
===
1
&&
!
pagination
.
hasNextPage
;
return
(
<>
{
txHash
&&
(
data
?.
items
.
length
||
0
>
0
)
&&
(
...
...
ui/shared/TokenTransfer/TokenTransferTable.tsx
View file @
e13f04e4
...
...
@@ -10,13 +10,14 @@ interface Props {
data
:
Array
<
TokenTransfer
>
;
baseAddress
?:
string
;
showTxInfo
?:
boolean
;
top
:
number
;
}
const
TokenTransferTable
=
({
data
,
baseAddress
,
showTxInfo
}:
Props
)
=>
{
const
TokenTransferTable
=
({
data
,
baseAddress
,
showTxInfo
,
top
}:
Props
)
=>
{
return
(
<
Table
variant=
"simple"
size=
"sm"
>
<
Thead
top=
{
80
}
>
<
Thead
top=
{
top
}
>
<
Tr
>
{
showTxInfo
&&
<
Th
width=
"44px"
></
Th
>
}
<
Th
width=
"185px"
>
Token
</
Th
>
...
...
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