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
c9d77868
Commit
c9d77868
authored
Jan 19, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] fix skeletons for home page indicators widget
parent
e56e8754
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ChainIndicatorItem.tsx
ui/home/indicators/ChainIndicatorItem.tsx
+2
-2
ChainIndicators.tsx
ui/home/indicators/ChainIndicators.tsx
+2
-2
No files found.
ui/home/indicators/ChainIndicatorItem.tsx
View file @
c9d77868
...
@@ -34,7 +34,7 @@ const ChainIndicatorItem = ({ id, title, value, icon, isSelected, onClick, stats
...
@@ -34,7 +34,7 @@ const ChainIndicatorItem = ({ id, title, value, icon, isSelected, onClick, stats
return
null
;
return
null
;
}
}
if
(
stats
.
isP
ending
)
{
if
(
stats
.
isP
laceholderData
)
{
return
(
return
(
<
Skeleton
<
Skeleton
h=
{
3
}
h=
{
3
}
...
@@ -46,7 +46,7 @@ const ChainIndicatorItem = ({ id, title, value, icon, isSelected, onClick, stats
...
@@ -46,7 +46,7 @@ const ChainIndicatorItem = ({ id, title, value, icon, isSelected, onClick, stats
);
);
}
}
if
(
stats
.
isError
)
{
if
(
!
stats
.
data
)
{
return
<
Text
variant=
"secondary"
fontWeight=
{
400
}
>
no data
</
Text
>;
return
<
Text
variant=
"secondary"
fontWeight=
{
400
}
>
no data
</
Text
>;
}
}
...
...
ui/home/indicators/ChainIndicators.tsx
View file @
c9d77868
...
@@ -52,11 +52,11 @@ const ChainIndicators = () => {
...
@@ -52,11 +52,11 @@ const ChainIndicators = () => {
}
}
const
valueTitle
=
(()
=>
{
const
valueTitle
=
(()
=>
{
if
(
statsQueryResult
.
isP
ending
)
{
if
(
statsQueryResult
.
isP
laceholderData
)
{
return
<
Skeleton
h=
"48px"
w=
"215px"
mt=
{
3
}
mb=
{
4
}
/>;
return
<
Skeleton
h=
"48px"
w=
"215px"
mt=
{
3
}
mb=
{
4
}
/>;
}
}
if
(
statsQueryResult
.
isError
)
{
if
(
!
statsQueryResult
.
data
)
{
return
<
Text
mt=
{
3
}
mb=
{
4
}
>
There is no data
</
Text
>;
return
<
Text
mt=
{
3
}
mb=
{
4
}
>
There is no data
</
Text
>;
}
}
...
...
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