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
adcda01f
Commit
adcda01f
authored
Dec 16, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swap tx hash and type in table
parent
c276cde3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
8 deletions
+26
-8
AddressTxs.pw.tsx_default_address-txs-mobile-desktop-xl-1.png
...essTxs.pw.tsx_default_address-txs-mobile-desktop-xl-1.png
+0
-0
AddressTxs.pw.tsx_desktop-xl_address-txs-mobile-desktop-xl-1.png
...Txs.pw.tsx_desktop-xl_address-txs-mobile-desktop-xl-1.png
+0
-0
TxsTable.pw.tsx
ui/txs/TxsTable.pw.tsx
+18
-0
TxsTable.tsx
ui/txs/TxsTable.tsx
+1
-1
TxsTableItem.tsx
ui/txs/TxsTableItem.tsx
+7
-7
TxsTable.pw.tsx_dark-color-mode_base-view-dark-mode-desktop-xl-1.png
....tsx_dark-color-mode_base-view-dark-mode-desktop-xl-1.png
+0
-0
TxsTable.pw.tsx_default_base-view-dark-mode-desktop-xl-1.png
...Table.pw.tsx_default_base-view-dark-mode-desktop-xl-1.png
+0
-0
TxsTable.pw.tsx_desktop-xl_base-view-dark-mode-desktop-xl-1.png
...le.pw.tsx_desktop-xl_base-view-dark-mode-desktop-xl-1.png
+0
-0
No files found.
ui/address/__screenshots__/AddressTxs.pw.tsx_default_address-txs-mobile-desktop-xl-1.png
View replaced file @
c276cde3
View file @
adcda01f
43.9 KB
|
W:
|
H:
43.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/address/__screenshots__/AddressTxs.pw.tsx_desktop-xl_address-txs-mobile-desktop-xl-1.png
View replaced file @
c276cde3
View file @
adcda01f
43.1 KB
|
W:
|
H:
43 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/txs/TxsTable.pw.tsx
0 → 100644
View file @
adcda01f
import
{
test
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
*
as
txMock
from
'
mocks/txs/tx
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
TxsTable
from
'
./TxsTable
'
;
test
(
'
base view +@dark-mode +@desktop-xl
'
,
async
({
mount
})
=>
{
const
component
=
await
mount
(
<
TestApp
>
{
/* eslint-disable-next-line react/jsx-no-bind */
}
<
TxsTable
txs=
{
[
txMock
.
base
,
txMock
.
base
]
}
sort=
{
()
=>
()
=>
{}
}
top=
{
0
}
showBlockInfo
showSocketInfo=
{
false
}
/>
</
TestApp
>,
);
await
expect
(
component
).
toHaveScreenshot
();
});
ui/txs/TxsTable.tsx
View file @
adcda01f
...
...
@@ -27,8 +27,8 @@ const TxsTable = ({ txs, sort, sorting, top, showBlockInfo, showSocketInfo, curr
<
TheadSticky
top=
{
top
}
>
<
Tr
>
<
Th
width=
"54px"
></
Th
>
<
Th
width=
"20%"
>
Type
</
Th
>
<
Th
width=
"18%"
>
Txn hash
</
Th
>
<
Th
width=
"20%"
>
Type
</
Th
>
<
Th
width=
"15%"
>
Method
</
Th
>
{
showBlockInfo
&&
<
Th
width=
"11%"
>
Block
</
Th
>
}
<
Th
width=
{
{
xl
:
'
128px
'
,
base
:
'
66px
'
}
}
>
From
</
Th
>
...
...
ui/txs/TxsTableItem.tsx
View file @
adcda01f
...
...
@@ -84,13 +84,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress }: Props) => {
)
}
</
Popover
>
</
Td
>
<
Td
>
<
VStack
alignItems=
"start"
>
<
TxType
types=
{
tx
.
tx_types
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
/>
</
VStack
>
</
Td
>
<
Td
>
<
Td
pr=
{
4
}
>
<
VStack
alignItems=
"start"
lineHeight=
"24px"
>
<
Address
width=
"100%"
>
<
AddressLink
...
...
@@ -102,6 +96,12 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress }: Props) => {
<
Text
color=
"gray.500"
fontWeight=
"400"
>
{
dayjs
(
tx
.
timestamp
).
fromNow
()
}
</
Text
>
</
VStack
>
</
Td
>
<
Td
>
<
VStack
alignItems=
"start"
>
<
TxType
types=
{
tx
.
tx_types
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
/>
</
VStack
>
</
Td
>
<
Td
whiteSpace=
"nowrap"
>
{
tx
.
method
?
(
<
TruncatedTextTooltip
label=
{
tx
.
method
}
>
...
...
ui/txs/__screenshots__/TxsTable.pw.tsx_dark-color-mode_base-view-dark-mode-desktop-xl-1.png
0 → 100644
View file @
adcda01f
40.2 KB
ui/txs/__screenshots__/TxsTable.pw.tsx_default_base-view-dark-mode-desktop-xl-1.png
0 → 100644
View file @
adcda01f
39.7 KB
ui/txs/__screenshots__/TxsTable.pw.tsx_desktop-xl_base-view-dark-mode-desktop-xl-1.png
0 → 100644
View file @
adcda01f
38.7 KB
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