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
93888428
Commit
93888428
authored
Feb 23, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes3
parent
61e0da60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Home.tsx
ui/pages/Home.tsx
+1
-0
TxsTableItem.tsx
ui/txs/TxsTableItem.tsx
+2
-3
No files found.
ui/pages/Home.tsx
View file @
93888428
...
@@ -37,6 +37,7 @@ const Home = () => {
...
@@ -37,6 +37,7 @@ const Home = () => {
alignItems=
"center"
alignItems=
"center"
display=
{
{
base
:
'
none
'
,
lg
:
'
flex
'
}
}
display=
{
{
base
:
'
none
'
,
lg
:
'
flex
'
}
}
columnGap=
{
12
}
columnGap=
{
12
}
pl=
{
4
}
>
>
<
ColorModeToggler
trackBg=
"whiteAlpha.500"
/>
<
ColorModeToggler
trackBg=
"whiteAlpha.500"
/>
<
ProfileMenuDesktop
/>
<
ProfileMenuDesktop
/>
...
...
ui/txs/TxsTableItem.tsx
View file @
93888428
...
@@ -37,8 +37,9 @@ type Props = {
...
@@ -37,8 +37,9 @@ type Props = {
}
}
const
TxsTableItem
=
({
tx
,
showBlockInfo
,
currentAddress
,
enableTimeIncrement
}:
Props
)
=>
{
const
TxsTableItem
=
({
tx
,
showBlockInfo
,
currentAddress
,
enableTimeIncrement
}:
Props
)
=>
{
const
dataTo
=
tx
.
to
?
tx
.
to
:
tx
.
created_contract
;
const
isOut
=
Boolean
(
currentAddress
&&
currentAddress
===
tx
.
from
.
hash
);
const
isOut
=
Boolean
(
currentAddress
&&
currentAddress
===
tx
.
from
.
hash
);
const
isIn
=
Boolean
(
currentAddress
&&
currentAddress
===
tx
.
to
?
.
hash
);
const
isIn
=
Boolean
(
currentAddress
&&
currentAddress
===
dataTo
.
hash
);
const
timeAgo
=
useTimeAgoIncrement
(
tx
.
timestamp
,
enableTimeIncrement
);
const
timeAgo
=
useTimeAgoIncrement
(
tx
.
timestamp
,
enableTimeIncrement
);
...
@@ -49,8 +50,6 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement }
...
@@ -49,8 +50,6 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement }
</
Address
>
</
Address
>
);
);
const
dataTo
=
tx
.
to
?
tx
.
to
:
tx
.
created_contract
;
const
addressTo
=
(
const
addressTo
=
(
<
Address
>
<
Address
>
<
AddressIcon
address=
{
dataTo
}
/>
<
AddressIcon
address=
{
dataTo
}
/>
...
...
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