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
2790cac8
Commit
2790cac8
authored
Nov 08, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide paginator if there is only one page
parent
893505d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
TokenTransfer.tsx
ui/shared/TokenTransfer/TokenTransfer.tsx
+5
-3
TokenTransferTable.tsx
ui/shared/TokenTransfer/TokenTransferTable.tsx
+2
-2
TxTokenTransfer.tsx
ui/tx/TxTokenTransfer.tsx
+1
-1
TxDetailsTokenTransfers.tsx
ui/tx/details/TxDetailsTokenTransfers.tsx
+4
-4
No files found.
ui/shared/TokenTransfer/TokenTransfer.tsx
View file @
2790cac8
...
@@ -72,9 +72,11 @@ const TokenTransfer = ({ isLoading: isLoadingProp, isDisabled, queryName, queryI
...
@@ -72,9 +72,11 @@ const TokenTransfer = ({ isLoading: isLoadingProp, isDisabled, queryName, queryI
return
(
return
(
<>
<>
<
ActionBar
>
{
pagination
.
page
===
1
&&
!
pagination
.
hasNextPage
?
null
:
(
<
Pagination
ml=
"auto"
{
...
pagination
}
/>
<
ActionBar
>
</
ActionBar
>
<
Pagination
ml=
"auto"
{
...
pagination
}
/>
</
ActionBar
>
)
}
{
content
}
{
content
}
</>
</>
);
);
...
...
ui/shared/TokenTransfer/TokenTransferTable.tsx
View file @
2790cac8
...
@@ -12,7 +12,7 @@ interface Props {
...
@@ -12,7 +12,7 @@ interface Props {
showTxInfo
?:
boolean
;
showTxInfo
?:
boolean
;
}
}
const
T
xInternals
Table
=
({
data
,
baseAddress
,
showTxInfo
}:
Props
)
=>
{
const
T
okenTransfer
Table
=
({
data
,
baseAddress
,
showTxInfo
}:
Props
)
=>
{
return
(
return
(
<
Table
variant=
"simple"
size=
"sm"
>
<
Table
variant=
"simple"
size=
"sm"
>
...
@@ -37,4 +37,4 @@ const TxInternalsTable = ({ data, baseAddress, showTxInfo }: Props) => {
...
@@ -37,4 +37,4 @@ const TxInternalsTable = ({ data, baseAddress, showTxInfo }: Props) => {
);
);
};
};
export
default
React
.
memo
(
T
xInternals
Table
);
export
default
React
.
memo
(
T
okenTransfer
Table
);
ui/tx/TxTokenTransfer.tsx
View file @
2790cac8
...
@@ -25,7 +25,7 @@ const TxTokenTransfer = () => {
...
@@ -25,7 +25,7 @@ const TxTokenTransfer = () => {
return
(
return
(
<>
<>
<
Text
>
Token transfers for transaction
{
data
?.
hash
}
</
Text
>
<
Text
mb=
{
6
}
>
Token transfers for transaction
{
data
?.
hash
}
</
Text
>
<
TokenTransfer
<
TokenTransfer
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
isDisabled=
{
!
data
?.
status
||
!
data
?.
hash
}
isDisabled=
{
!
data
?.
status
||
!
data
?.
hash
}
...
...
ui/tx/details/TxDetailsTokenTransfers.tsx
View file @
2790cac8
...
@@ -17,10 +17,10 @@ interface Props {
...
@@ -17,10 +17,10 @@ interface Props {
}
}
const
TOKEN_TRANSFERS_TYPES
=
[
const
TOKEN_TRANSFERS_TYPES
=
[
{
title
:
'
Tokens
T
ransferred
'
,
hint
:
'
List of tokens transferred in the transaction.
'
,
type
:
'
token_transfer
'
},
{
title
:
'
Tokens
t
ransferred
'
,
hint
:
'
List of tokens transferred in the transaction.
'
,
type
:
'
token_transfer
'
},
{
title
:
'
Tokens
M
inted
'
,
hint
:
'
List of tokens minted in the transaction.
'
,
type
:
'
token_minting
'
},
{
title
:
'
Tokens
m
inted
'
,
hint
:
'
List of tokens minted in the transaction.
'
,
type
:
'
token_minting
'
},
{
title
:
'
Tokens
B
urnt
'
,
hint
:
'
List of tokens burnt in the transaction.
'
,
type
:
'
token_burning
'
},
{
title
:
'
Tokens
b
urnt
'
,
hint
:
'
List of tokens burnt in the transaction.
'
,
type
:
'
token_burning
'
},
{
title
:
'
Tokens
C
reated
'
,
hint
:
'
List of tokens created in the transaction.
'
,
type
:
'
token_spawning
'
},
{
title
:
'
Tokens
c
reated
'
,
hint
:
'
List of tokens created in the transaction.
'
,
type
:
'
token_spawning
'
},
];
];
const
VISIBLE_ITEMS_NUM
=
3
;
const
VISIBLE_ITEMS_NUM
=
3
;
...
...
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