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
4c79cd83
Commit
4c79cd83
authored
Dec 19, 2022
by
POA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially fix lint:tsc errors
parent
1506dac0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
transaction.ts
types/api/transaction.ts
+1
-0
txAction.ts
types/api/txAction.ts
+1
-1
DetailsInfoItem.tsx
ui/shared/DetailsInfoItem.tsx
+2
-0
TxDetailsAction.tsx
ui/tx/details/TxDetailsAction.tsx
+3
-3
TxDetailsActions.tsx
ui/tx/details/TxDetailsActions.tsx
+6
-2
No files found.
types/api/transaction.ts
View file @
4c79cd83
...
@@ -48,6 +48,7 @@ export type Transaction = (
...
@@ -48,6 +48,7 @@ export type Transaction = (
method
:
string
|
null
;
method
:
string
|
null
;
tx_types
:
Array
<
TransactionType
>
;
tx_types
:
Array
<
TransactionType
>
;
tx_tag
:
string
|
null
;
tx_tag
:
string
|
null
;
actions
?:
Array
<
object
>
;
}
}
export
type
TransactionsResponse
=
TransactionsResponseValidated
|
TransactionsResponsePending
;
export
type
TransactionsResponse
=
TransactionsResponseValidated
|
TransactionsResponsePending
;
...
...
types/api/txAction.ts
View file @
4c79cd83
export
type
T
okenTransferPagina
tion
=
{
export
type
T
xAc
tion
=
{
protocol
:
string
;
protocol
:
string
;
type
:
string
;
type
:
string
;
data
:
object
;
data
:
object
;
...
...
ui/shared/DetailsInfoItem.tsx
View file @
4c79cd83
...
@@ -8,6 +8,8 @@ interface Props extends Omit<HTMLChakraProps<'div'>, 'title'> {
...
@@ -8,6 +8,8 @@ interface Props extends Omit<HTMLChakraProps<'div'>, 'title'> {
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
hint
:
string
;
hint
:
string
;
children
:
React
.
ReactNode
;
children
:
React
.
ReactNode
;
note
?:
string
;
noteDisplay
?:
string
;
}
}
const
DetailsInfoItem
=
({
title
,
hint
,
note
,
noteDisplay
,
children
,
id
,
...
styles
}:
Props
)
=>
{
const
DetailsInfoItem
=
({
title
,
hint
,
note
,
noteDisplay
,
children
,
id
,
...
styles
}:
Props
)
=>
{
...
...
ui/tx/details/TxDetailsAction.tsx
View file @
4c79cd83
...
@@ -68,9 +68,9 @@ const TxDetailsAction = ({ protocol, type, data, isLast }: Props) => {
...
@@ -68,9 +68,9 @@ const TxDetailsAction = ({ protocol, type, data, isLast }: Props) => {
<
Text
as=
"span"
>
Mint of
</
Text
>
<
Text
as=
"span"
>
Mint of
</
Text
>
<
Image
src=
{
uniswapIconUrl
}
boxSize=
{
5
}
fallback=
" "
alt=
""
/>
<
Image
src=
{
uniswapIconUrl
}
boxSize=
{
5
}
fallback=
" "
alt=
""
/>
<
Link
href=
{
tokenUrl
}
target=
"_blank"
overflow=
"hidden"
whiteSpace=
"nowrap"
>
<
Link
href=
{
tokenUrl
}
target=
"_blank"
overflow=
"hidden"
whiteSpace=
"nowrap"
>
<
StringShorten
title=
{
data
.
name
}
maxLength=
"12"
/>
<
StringShorten
title=
{
data
.
name
}
maxLength=
{
12
}
/>
{
space
}
{
space
}
(
<
StringShorten
title=
{
data
.
symbol
}
maxLength=
"6"
/>
)
(
<
StringShorten
title=
{
data
.
symbol
}
maxLength=
{
6
}
/>
)
</
Link
>
</
Link
>
</
Flex
>
</
Flex
>
<
Flex
columnGap=
{
1
}
>
<
Flex
columnGap=
{
1
}
>
...
@@ -80,7 +80,7 @@ const TxDetailsAction = ({ protocol, type, data, isLast }: Props) => {
...
@@ -80,7 +80,7 @@ const TxDetailsAction = ({ protocol, type, data, isLast }: Props) => {
</
Flex
>
</
Flex
>
<
Flex
columnGap=
{
1
}
rowGap=
{
2
}
marginLeft=
{
3
}
flexDirection=
"column"
>
<
Flex
columnGap=
{
1
}
rowGap=
{
2
}
marginLeft=
{
3
}
flexDirection=
"column"
>
{
{
data
.
ids
.
map
((
id
)
=>
{
data
.
ids
.
map
((
id
:
string
)
=>
{
const
url
=
link
(
'
token_instance_item
'
,
{
hash
:
data
.
address
,
id
});
const
url
=
link
(
'
token_instance_item
'
,
{
hash
:
data
.
address
,
id
});
return
(
return
(
<
Flex
key=
{
id
}
>
<
Flex
key=
{
id
}
>
...
...
ui/tx/details/TxDetailsActions.tsx
View file @
4c79cd83
...
@@ -6,7 +6,11 @@ import DetailsInfoItem from 'ui/shared/DetailsInfoItem';
...
@@ -6,7 +6,11 @@ import DetailsInfoItem from 'ui/shared/DetailsInfoItem';
import
TxDetailsAction
from
'
./TxDetailsAction
'
;
import
TxDetailsAction
from
'
./TxDetailsAction
'
;
const
TxDetailsActions
=
({
actions
}:
array
)
=>
{
interface
Props
{
actions
:
array
;
}
const
TxDetailsActions
=
({
actions
}:
Props
)
=>
{
function
onScrollbarLoad
()
{
function
onScrollbarLoad
()
{
$
(
'
.mCustomScrollbar
'
).
mCustomScrollbar
({
callbacks
:
{
$
(
'
.mCustomScrollbar
'
).
mCustomScrollbar
({
callbacks
:
{
onOverflowY
:
()
=>
{
onOverflowY
:
()
=>
{
...
@@ -41,7 +45,7 @@ const TxDetailsActions = ({ actions }: array) => {
...
@@ -41,7 +45,7 @@ const TxDetailsActions = ({ actions }: array) => {
w=
"100%"
w=
"100%"
fontWeight=
{
500
}
fontWeight=
{
500
}
>
>
{
actions
.
map
((
action
,
index
)
=>
<
TxDetailsAction
key=
{
index
}
{
...
action
}
isLast=
{
index
===
actions
.
length
-
1
}
/>)
}
{
actions
.
map
((
action
,
index
:
number
)
=>
<
TxDetailsAction
key=
{
index
}
{
...
action
}
isLast=
{
index
===
actions
.
length
-
1
}
/>)
}
</
Flex
>
</
Flex
>
</
Box
>
</
Box
>
{
/* eslint-disable-next-line react/jsx-no-bind */
}
{
/* eslint-disable-next-line react/jsx-no-bind */
}
...
...
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