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
38031614
Commit
38031614
authored
Dec 16, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor list skeleton for account
parent
28f5e7b6
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
17 deletions
+16
-17
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+2
-2
CustomAbi.tsx
ui/pages/CustomAbi.tsx
+2
-2
Watchlist.tsx
ui/pages/Watchlist.tsx
+2
-2
PrivateAddressTags.tsx
ui/privateTags/PrivateAddressTags.tsx
+2
-2
PrivateTransactionTags.tsx
ui/privateTags/PrivateTransactionTags.tsx
+2
-2
PublicTagsData.tsx
ui/publicTags/PublicTagsData.tsx
+2
-2
SkeletonListAccount.tsx
ui/shared/skeletons/SkeletonListAccount.tsx
+4
-5
No files found.
ui/pages/ApiKeys.tsx
View file @
38031614
...
...
@@ -17,7 +17,7 @@ import AccountPageDescription from 'ui/shared/AccountPageDescription';
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
Skeleton
AccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
Skeleton
ListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
const
DATA_LIMIT
=
3
;
...
...
@@ -63,7 +63,7 @@ const ApiKeysPage: React.FC = () => {
const
content
=
(()
=>
{
if
(
isLoading
&&
!
data
)
{
const
loader
=
isMobile
?
<
Skeleton
AccountMobile
/>
:
(
const
loader
=
isMobile
?
<
Skeleton
ListAccount
/>
:
(
<>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"48px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/pages/CustomAbi.tsx
View file @
38031614
...
...
@@ -16,7 +16,7 @@ import AccountPageDescription from 'ui/shared/AccountPageDescription';
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
Skeleton
AccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
Skeleton
ListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
const
CustomAbiPage
:
React
.
FC
=
()
=>
{
...
...
@@ -60,7 +60,7 @@ const CustomAbiPage: React.FC = () => {
const
content
=
(()
=>
{
if
(
isLoading
&&
!
data
)
{
const
loader
=
isMobile
?
<
Skeleton
AccountMobile
/>
:
(
const
loader
=
isMobile
?
<
Skeleton
ListAccount
/>
:
(
<>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/pages/Watchlist.tsx
View file @
38031614
...
...
@@ -12,7 +12,7 @@ import AccountPageDescription from 'ui/shared/AccountPageDescription';
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
Skeleton
AccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
Skeleton
ListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
AddressModal
from
'
ui/watchlist/AddressModal/AddressModal
'
;
import
DeleteAddressModal
from
'
ui/watchlist/DeleteAddressModal
'
;
...
...
@@ -73,7 +73,7 @@ const WatchList: React.FC = () => {
let
content
;
if
(
isLoading
&&
!
data
)
{
const
loader
=
isMobile
?
<
Skeleton
AccountMobile
showFooterSlot
/>
:
(
const
loader
=
isMobile
?
<
Skeleton
ListAccount
showFooterSlot
/>
:
(
<>
<
SkeletonTable
columns=
{
[
'
70%
'
,
'
30%
'
,
'
160px
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/privateTags/PrivateAddressTags.tsx
View file @
38031614
...
...
@@ -9,7 +9,7 @@ import useFetch from 'lib/hooks/useFetch';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Skeleton
AccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
Skeleton
ListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
AddressModal
from
'
./AddressModal/AddressModal
'
;
...
...
@@ -57,7 +57,7 @@ const PrivateAddressTags = () => {
);
if
(
isLoading
&&
!
addressTagsData
)
{
const
loader
=
isMobile
?
<
Skeleton
AccountMobile
/>
:
(
const
loader
=
isMobile
?
<
Skeleton
ListAccount
/>
:
(
<>
<
SkeletonTable
columns=
{
[
'
60%
'
,
'
40%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/privateTags/PrivateTransactionTags.tsx
View file @
38031614
...
...
@@ -9,7 +9,7 @@ import useFetch from 'lib/hooks/useFetch';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Skeleton
AccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
Skeleton
ListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
DeletePrivateTagModal
from
'
./DeletePrivateTagModal
'
;
...
...
@@ -60,7 +60,7 @@ const PrivateTransactionTags = () => {
);
if
(
isLoading
&&
!
transactionTagsData
)
{
const
loader
=
isMobile
?
<
Skeleton
AccountMobile
/>
:
(
const
loader
=
isMobile
?
<
Skeleton
ListAccount
/>
:
(
<>
<
SkeletonTable
columns=
{
[
'
75%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/publicTags/PublicTagsData.tsx
View file @
38031614
...
...
@@ -10,7 +10,7 @@ import useIsMobile from 'lib/hooks/useIsMobile';
import
PublicTagListItem
from
'
ui/publicTags/PublicTagTable/PublicTagListItem
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Skeleton
AccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
Skeleton
ListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
DeletePublicTagModal
from
'
./DeletePublicTagModal
'
;
...
...
@@ -58,7 +58,7 @@ const PublicTagsData = ({ changeToFormScreen, onTagDelete }: Props) => {
);
if
(
isLoading
)
{
const
loader
=
isMobile
?
<
Skeleton
AccountMobile
/>
:
(
const
loader
=
isMobile
?
<
Skeleton
ListAccount
/>
:
(
<>
<
SkeletonTable
columns=
{
[
'
50%
'
,
'
25%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"48px"
width=
"270px"
marginTop=
{
8
}
/>
...
...
ui/shared/
SkeletonAccountMobile
.tsx
→
ui/shared/
skeletons/SkeletonListAccount
.tsx
View file @
38031614
...
...
@@ -5,7 +5,7 @@ interface Props {
showFooterSlot
?:
boolean
;
}
const
Skeleton
AccountMobile
=
({
showFooterSlot
}:
Props
)
=>
{
const
Skeleton
ListAccount
=
({
showFooterSlot
}:
Props
)
=>
{
const
borderColor
=
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
);
return
(
...
...
@@ -18,9 +18,8 @@ const SkeletonAccountMobile = ({ showFooterSlot }: Props) => {
paddingY=
{
6
}
borderTopWidth=
"1px"
borderColor=
{
borderColor
}
_first=
{
{
borderTopWidth
:
'
0
'
,
pt
:
'
0
'
,
_last=
{
{
borderBottomWidth
:
'
0px
'
,
}
}
>
<
Flex
columnGap=
{
2
}
w=
"100%"
alignItems=
"center"
>
...
...
@@ -45,4 +44,4 @@ const SkeletonAccountMobile = ({ showFooterSlot }: Props) => {
);
};
export
default
Skeleton
AccountMobile
;
export
default
Skeleton
ListAccount
;
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