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
46b0eaad
Commit
46b0eaad
authored
Jun 06, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix home skeleton
parent
6015bb72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
90 deletions
+86
-90
LatestTxsItem.tsx
ui/home/LatestTxsItem.tsx
+86
-90
No files found.
ui/home/LatestTxsItem.tsx
View file @
46b0eaad
...
...
@@ -14,7 +14,6 @@ import appConfig from 'configs/app/config';
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
transactionIcon
from
'
icons/transactions.svg
'
;
import
getValueWithUnit
from
'
lib/getValueWithUnit
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useTimeAgoIncrement
from
'
lib/hooks/useTimeAgoIncrement
'
;
import
Address
from
'
ui/shared/address/Address
'
;
import
AddressIcon
from
'
ui/shared/address/AddressIcon
'
;
...
...
@@ -33,16 +32,15 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
const
dataTo
=
tx
.
to
?
tx
.
to
:
tx
.
created_contract
;
const
timeAgo
=
useTimeAgoIncrement
(
tx
.
timestamp
||
'
0
'
,
true
);
const
isMobile
=
useIsMobile
();
if
(
isMobile
)
{
return
(
<>
<
Box
width=
"100%"
borderTop=
"1px solid"
borderColor=
"divider"
py=
{
4
}
_last=
{
{
borderBottom
:
'
1px solid
'
,
borderColor
:
'
divider
'
}
}
display=
{
{
base
:
'
block
'
,
lg
:
'
none
'
}
}
>
<
Flex
justifyContent=
"space-between"
>
<
HStack
>
...
...
@@ -127,10 +125,6 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
<
Text
as=
"span"
variant=
"secondary"
>
{
getValueWithUnit
(
tx
.
fee
.
value
).
dp
(
5
).
toFormat
()
}
</
Text
>
</
Skeleton
>
</
Box
>
);
}
return
(
<
Box
width=
"100%"
minW=
"700px"
...
...
@@ -138,6 +132,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
borderColor=
"divider"
p=
{
4
}
_last=
{
{
borderBottom
:
'
1px solid
'
,
borderColor
:
'
divider
'
}
}
display=
{
{
base
:
'
none
'
,
lg
:
'
block
'
}
}
>
<
Grid
width=
"100%"
gridTemplateColumns=
"3fr 2fr 150px"
gridGap=
{
8
}
>
<
Flex
overflow=
"hidden"
w=
"100%"
>
...
...
@@ -224,6 +219,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
</
Box
>
</
Grid
>
</
Box
>
</>
);
};
...
...
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