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
c9338b93
Commit
c9338b93
authored
Aug 31, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add content loader
parent
898b1a42
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
12 deletions
+54
-12
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+9
-2
CustomAbi.tsx
ui/pages/CustomAbi.tsx
+9
-2
Watchlist.tsx
ui/pages/Watchlist.tsx
+9
-2
PrivateAddressTags.tsx
ui/privateTags/PrivateAddressTags.tsx
+9
-2
PrivateTransactionTags.tsx
ui/privateTags/PrivateTransactionTags.tsx
+9
-2
PublicTagsData.tsx
ui/publicTags/PublicTagsData.tsx
+9
-2
No files found.
ui/pages/ApiKeys.tsx
View file @
c9338b93
...
...
@@ -13,6 +13,7 @@ import ApiKeyTable from 'ui/apiKey/ApiKeyTable/ApiKeyTable';
import
DeleteApiKeyModal
from
'
ui/apiKey/DeleteApiKeyModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
...
@@ -59,13 +60,19 @@ const ApiKeysPage: React.FC = () => {
const
content
=
(()
=>
{
if
(
isLoading
&&
!
data
)
{
return
(
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
<>
{
description
}
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"48px"
width=
"156px"
marginTop=
{
8
}
/>
</>
);
return
(
<>
{
description
}
{
loader
}
</>
);
}
if
(
isError
)
{
...
...
ui/pages/CustomAbi.tsx
View file @
c9338b93
...
...
@@ -12,6 +12,7 @@ import CustomAbiTable from 'ui/customAbi/CustomAbiTable/CustomAbiTable';
import
DeleteCustomAbiModal
from
'
ui/customAbi/DeleteCustomAbiModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
...
@@ -55,13 +56,19 @@ const CustomAbiPage: React.FC = () => {
const
content
=
(()
=>
{
if
(
isLoading
&&
!
data
)
{
return
(
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
<>
{
description
}
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
);
return
(
<>
{
description
}
{
loader
}
</>
);
}
if
(
isError
)
{
...
...
ui/pages/Watchlist.tsx
View file @
c9338b93
...
...
@@ -8,6 +8,7 @@ import fetch from 'lib/client/fetch';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
...
@@ -55,13 +56,19 @@ const WatchList: React.FC = () => {
let
content
;
if
(
isLoading
&&
!
data
)
{
con
tent
=
(
con
st
loader
=
isMobile
?
<
ContentLoader
/>
:
(
<>
{
description
}
<
SkeletonTable
columns=
{
[
'
70%
'
,
'
30%
'
,
'
160px
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
);
content
=
(
<>
{
description
}
{
loader
}
</>
);
}
else
if
(
isError
)
{
content
=
<
DataFetchAlert
/>;
}
else
{
...
...
ui/privateTags/PrivateAddressTags.tsx
View file @
c9338b93
...
...
@@ -7,6 +7,7 @@ import type { AddressTags, AddressTag } from 'types/api/account';
import
fetch
from
'
lib/client/fetch
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
...
@@ -54,13 +55,19 @@ const PrivateAddressTags = () => {
);
if
(
isLoading
&&
!
addressTagsData
)
{
return
(
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
<>
{
description
}
<
SkeletonTable
columns=
{
[
'
60%
'
,
'
40%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
);
return
(
<>
{
description
}
{
loader
}
</>
);
}
if
(
isError
)
{
...
...
ui/privateTags/PrivateTransactionTags.tsx
View file @
c9338b93
...
...
@@ -7,6 +7,7 @@ import type { TransactionTags, TransactionTag } from 'types/api/account';
import
fetch
from
'
lib/client/fetch
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
...
@@ -54,13 +55,19 @@ const PrivateTransactionTags = () => {
);
if
(
isLoading
&&
!
transactionTagsData
)
{
return
(
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
<>
{
description
}
<
SkeletonTable
columns=
{
[
'
75%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
);
return
(
<>
{
description
}
{
loader
}
</>
);
}
if
(
isError
)
{
...
...
ui/publicTags/PublicTagsData.tsx
View file @
c9338b93
...
...
@@ -8,6 +8,7 @@ import fetch from 'lib/client/fetch';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
PublicTagListItem
from
'
ui/publicTags/PublicTagTable/PublicTagListItem
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
...
@@ -54,13 +55,19 @@ const PublicTagsData = ({ changeToFormScreen, onTagDelete }: Props) => {
);
if
(
isLoading
)
{
return
(
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
<>
{
description
}
<
SkeletonTable
columns=
{
[
'
50%
'
,
'
25%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"48px"
width=
"270px"
marginTop=
{
8
}
/>
</>
);
return
(
<>
{
description
}
{
loader
}
</>
);
}
if
(
isError
)
{
...
...
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