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
31ec621b
Commit
31ec621b
authored
Mar 20, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change field name
parent
ed7aa0ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
txnBatches.ts
mocks/txnBatches/txnBatches.ts
+3
-3
txnBatches.ts
types/api/txnBatches.ts
+1
-1
TxnBatchesListItem.tsx
ui/txnBatches/TxnBatchesListItem.tsx
+1
-1
TxnBatchesTableItem.tsx
ui/txnBatches/TxnBatchesTableItem.tsx
+1
-1
No files found.
mocks/txnBatches/txnBatches.ts
View file @
31ec621b
...
@@ -6,7 +6,7 @@ export const txnBatchesData = {
...
@@ -6,7 +6,7 @@ export const txnBatchesData = {
'
0x5bc94d02b65743dfaa9e10a2d6e175aff2a05cce2128c8eaf848bd84ab9325c5
'
,
'
0x5bc94d02b65743dfaa9e10a2d6e175aff2a05cce2128c8eaf848bd84ab9325c5
'
,
'
0x92a51bc623111dbb91f243e3452e60fab6f090710357f9d9b75ac8a0f67dfd9d
'
,
'
0x92a51bc623111dbb91f243e3452e60fab6f090710357f9d9b75ac8a0f67dfd9d
'
,
],
],
l1_t
x_t
imestamp
:
'
2023-02-24T10:16:12.000000Z
'
,
l1_timestamp
:
'
2023-02-24T10:16:12.000000Z
'
,
l2_block_number
:
5902836
,
l2_block_number
:
5902836
,
tx_count
:
0
,
tx_count
:
0
,
},
},
...
@@ -15,7 +15,7 @@ export const txnBatchesData = {
...
@@ -15,7 +15,7 @@ export const txnBatchesData = {
l1_tx_hashes
:
[
l1_tx_hashes
:
[
'
0xc45f846ee28ce9ba116ce2d378d3dd00b55d324b833b3ecd4241c919c572c4aa
'
,
'
0xc45f846ee28ce9ba116ce2d378d3dd00b55d324b833b3ecd4241c919c572c4aa
'
,
],
],
l1_t
x_t
imestamp
:
'
2023-02-24T10:16:00.000000Z
'
,
l1_timestamp
:
'
2023-02-24T10:16:00.000000Z
'
,
l2_block_number
:
5902835
,
l2_block_number
:
5902835
,
tx_count
:
0
,
tx_count
:
0
,
},
},
...
@@ -24,7 +24,7 @@ export const txnBatchesData = {
...
@@ -24,7 +24,7 @@ export const txnBatchesData = {
l1_tx_hashes
:
[
l1_tx_hashes
:
[
'
0x48139721f792d3a68c3781b4cf50e66e8fc7dbb38adff778e09066ea5be9adb8
'
,
'
0x48139721f792d3a68c3781b4cf50e66e8fc7dbb38adff778e09066ea5be9adb8
'
,
],
],
l1_t
x_t
imestamp
:
'
2023-02-24T10:16:00.000000Z
'
,
l1_timestamp
:
'
2023-02-24T10:16:00.000000Z
'
,
l2_block_number
:
5902834
,
l2_block_number
:
5902834
,
tx_count
:
0
,
tx_count
:
0
,
},
},
...
...
types/api/txnBatches.ts
View file @
31ec621b
export
type
TxnBatchesItem
=
{
export
type
TxnBatchesItem
=
{
epoch_number
:
number
;
epoch_number
:
number
;
l1_tx_hashes
:
Array
<
string
>
;
l1_tx_hashes
:
Array
<
string
>
;
l1_t
x_t
imestamp
:
string
;
l1_timestamp
:
string
;
l2_block_number
:
number
;
l2_block_number
:
number
;
tx_count
:
number
;
tx_count
:
number
;
}
}
...
...
ui/txnBatches/TxnBatchesListItem.tsx
View file @
31ec621b
...
@@ -16,7 +16,7 @@ import ListItemMobileGrid from 'ui/shared/ListItemMobile/ListItemMobileGrid';
...
@@ -16,7 +16,7 @@ import ListItemMobileGrid from 'ui/shared/ListItemMobile/ListItemMobileGrid';
type
Props
=
{
item
:
TxnBatchesItem
};
type
Props
=
{
item
:
TxnBatchesItem
};
const
TxnBatchesListItem
=
({
item
}:
Props
)
=>
{
const
TxnBatchesListItem
=
({
item
}:
Props
)
=>
{
const
timeAgo
=
dayjs
(
item
.
l1_t
x_t
imestamp
).
fromNow
();
const
timeAgo
=
dayjs
(
item
.
l1_timestamp
).
fromNow
();
const
items
=
[
const
items
=
[
{
{
...
...
ui/txnBatches/TxnBatchesTableItem.tsx
View file @
31ec621b
...
@@ -15,7 +15,7 @@ import LinkInternal from 'ui/shared/LinkInternal';
...
@@ -15,7 +15,7 @@ import LinkInternal from 'ui/shared/LinkInternal';
type
Props
=
{
item
:
TxnBatchesItem
};
type
Props
=
{
item
:
TxnBatchesItem
};
const
TxnBatchesTableItem
=
({
item
}:
Props
)
=>
{
const
TxnBatchesTableItem
=
({
item
}:
Props
)
=>
{
const
timeAgo
=
dayjs
(
item
.
l1_t
x_t
imestamp
).
fromNow
();
const
timeAgo
=
dayjs
(
item
.
l1_timestamp
).
fromNow
();
return
(
return
(
<
Tr
>
<
Tr
>
...
...
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