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
9c45721c
Commit
9c45721c
authored
Oct 05, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tx details skeleton
parent
7311ec13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
TxDetails.tsx
ui/tx/TxDetails.tsx
+2
-1
TxDetailsSkeleton.tsx
ui/tx/details/TxDetailsSkeleton.tsx
+37
-0
No files found.
ui/tx/TxDetails.tsx
View file @
9c45721c
...
...
@@ -27,6 +27,7 @@ import TextSeparator from 'ui/shared/TextSeparator';
// import TokenSnippet from 'ui/shared/TokenSnippet';
import
TxStatus
from
'
ui/shared/TxStatus
'
;
import
Utilization
from
'
ui/shared/Utilization
'
;
import
TxDetailsSkeleton
from
'
ui/tx/details/TxDetailsSkeleton
'
;
import
TokenTransfer
from
'
ui/tx/TokenTransfer
'
;
import
TxDecodedInputData
from
'
ui/tx/TxDecodedInputData
'
;
...
...
@@ -54,7 +55,7 @@ const TxDetails = () => {
},
[]);
if
(
isLoading
||
isError
)
{
return
<
div
>
foo
</
div
>;
return
<
TxDetailsSkeleton
/
>;
}
return
(
...
...
ui/tx/details/TxDetailsSkeleton.tsx
0 → 100644
View file @
9c45721c
import
{
Grid
,
GridItem
,
Skeleton
,
SkeletonCircle
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
const
SkeletonRow
=
({
w
=
'
100%
'
}:
{
w
?:
string
})
=>
(
<>
<
GridItem
display=
"flex"
columnGap=
{
2
}
w=
{
{
base
:
'
50%
'
,
lg
:
'
auto
'
}
}
_notFirst=
{
{
mt
:
{
base
:
3
,
lg
:
0
}
}
}
>
<
SkeletonCircle
h=
{
5
}
w=
{
5
}
/>
<
Skeleton
flexGrow=
{
1
}
h=
{
5
}
borderRadius=
"full"
/>
</
GridItem
>
<
GridItem
pl=
{
{
base
:
7
,
lg
:
0
}
}
>
<
Skeleton
h=
{
5
}
borderRadius=
"full"
w=
{
{
base
:
'
100%
'
,
lg
:
w
}
}
/>
</
GridItem
>
</>
);
const
TxDetailsSkeleton
=
()
=>
{
return
(
<
Grid
columnGap=
{
8
}
rowGap=
{
{
base
:
5
,
lg
:
7
}
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
210px 1fr
'
}
}
maxW=
"1000px"
>
<
SkeletonRow
/>
<
SkeletonRow
w=
"20%"
/>
<
SkeletonRow
w=
"50%"
/>
<
SkeletonRow
/>
<
SkeletonRow
w=
"70%"
/>
<
SkeletonRow
w=
"70%"
/>
<
SkeletonRow
w=
"40%"
/>
<
SkeletonRow
w=
"40%"
/>
<
SkeletonRow
w=
"40%"
/>
<
SkeletonRow
w=
"40%"
/>
<
SkeletonRow
w=
"40%"
/>
<
GridItem
colSpan=
{
{
base
:
undefined
,
lg
:
2
}
}
>
<
Skeleton
h=
{
5
}
borderRadius=
"full"
w=
"100px"
/>
</
GridItem
>
</
Grid
>
);
};
export
default
TxDetailsSkeleton
;
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