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
d4cc9510
Commit
d4cc9510
authored
May 10, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
throw out only specific error
parent
abdd2a51
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
8 deletions
+37
-8
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+5
-1
CustomAbi.tsx
ui/pages/CustomAbi.tsx
+5
-1
MyProfile.tsx
ui/pages/MyProfile.tsx
+5
-1
Watchlist.tsx
ui/pages/Watchlist.tsx
+7
-2
PrivateAddressTags.tsx
ui/privateTags/PrivateAddressTags.tsx
+5
-1
PrivateTransactionTags.tsx
ui/privateTags/PrivateTransactionTags.tsx
+5
-1
PublicTagsData.tsx
ui/publicTags/PublicTagsData.tsx
+5
-1
No files found.
ui/pages/ApiKeys.tsx
View file @
d4cc9510
...
...
@@ -12,6 +12,7 @@ import ApiKeyListItem from 'ui/apiKey/ApiKeyTable/ApiKeyListItem';
import
ApiKeyTable
from
'
ui/apiKey/ApiKeyTable/ApiKeyTable
'
;
import
DeleteApiKeyModal
from
'
ui/apiKey/DeleteApiKeyModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
SkeletonListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/skeletons/SkeletonTable
'
;
...
...
@@ -74,7 +75,10 @@ const ApiKeysPage: React.FC = () => {
}
if
(
isError
)
{
throw
new
Error
(
'
API keys fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
const
list
=
isMobile
?
(
...
...
ui/pages/CustomAbi.tsx
View file @
d4cc9510
...
...
@@ -11,6 +11,7 @@ import CustomAbiListItem from 'ui/customAbi/CustomAbiTable/CustomAbiListItem';
import
CustomAbiTable
from
'
ui/customAbi/CustomAbiTable/CustomAbiTable
'
;
import
DeleteCustomAbiModal
from
'
ui/customAbi/DeleteCustomAbiModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
SkeletonListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/skeletons/SkeletonTable
'
;
...
...
@@ -70,7 +71,10 @@ const CustomAbiPage: React.FC = () => {
}
if
(
isError
)
{
throw
new
Error
(
'
Custom ABI fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
const
list
=
isMobile
?
(
...
...
ui/pages/MyProfile.tsx
View file @
d4cc9510
...
...
@@ -4,6 +4,7 @@ import React from 'react';
import
useFetchProfileInfo
from
'
lib/hooks/useFetchProfileInfo
'
;
import
useRedirectForInvalidAuthToken
from
'
lib/hooks/useRedirectForInvalidAuthToken
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
UserAvatar
from
'
ui/shared/UserAvatar
'
;
...
...
@@ -17,7 +18,10 @@ const MyProfile = () => {
}
if
(
isError
)
{
throw
new
Error
(
'
My profile fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
return
(
...
...
ui/pages/Watchlist.tsx
View file @
d4cc9510
...
...
@@ -5,11 +5,13 @@ import React, { useCallback, useState } from 'react';
import
type
{
WatchlistAddress
,
WatchlistTokensResponse
}
from
'
types/api/account
'
;
import
type
{
TWatchlist
,
TWatchlistItem
}
from
'
types/client/account
'
;
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
{
resourceKey
}
from
'
lib/api/resources
'
;
import
useApiFetch
from
'
lib/api/useApiFetch
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useRedirectForInvalidAuthToken
from
'
lib/hooks/useRedirectForInvalidAuthToken
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
SkeletonListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/skeletons/SkeletonTable
'
;
...
...
@@ -20,7 +22,7 @@ import WatchlistTable from 'ui/watchlist/WatchlistTable/WatchlistTable';
const
WatchList
:
React
.
FC
=
()
=>
{
const
apiFetch
=
useApiFetch
();
const
{
data
,
isLoading
,
isError
,
error
}
=
useQuery
<
unknown
,
unknown
,
TWatchlist
>
([
resourceKey
(
'
watchlist
'
)
],
async
()
=>
{
const
{
data
,
isLoading
,
isError
,
error
}
=
useQuery
<
unknown
,
ResourceError
,
TWatchlist
>
([
resourceKey
(
'
watchlist
'
)
],
async
()
=>
{
const
watchlistAddresses
=
await
apiFetch
<
'
watchlist
'
,
Array
<
WatchlistAddress
>>
(
'
watchlist
'
);
if
(
!
Array
.
isArray
(
watchlistAddresses
))
{
...
...
@@ -91,7 +93,10 @@ const WatchList: React.FC = () => {
);
if
(
isError
)
{
throw
new
Error
(
'
Watch list fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
const
content
=
(()
=>
{
...
...
ui/privateTags/PrivateAddressTags.tsx
View file @
d4cc9510
...
...
@@ -7,6 +7,7 @@ import useApiQuery from 'lib/api/useApiQuery';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
{
PRIVATE_TAG_ADDRESS
}
from
'
stubs/account
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
AddressModal
from
'
./AddressModal/AddressModal
'
;
import
AddressTagListItem
from
'
./AddressTagTable/AddressTagListItem
'
;
...
...
@@ -49,7 +50,10 @@ const PrivateAddressTags = () => {
},
[
deleteModalProps
]);
if
(
isError
)
{
throw
new
Error
(
'
Private tags fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
const
list
=
isMobile
?
(
...
...
ui/privateTags/PrivateTransactionTags.tsx
View file @
d4cc9510
...
...
@@ -6,6 +6,7 @@ import type { TransactionTag } from 'types/api/account';
import
useApiQuery
from
'
lib/api/useApiQuery
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
SkeletonListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/skeletons/SkeletonTable
'
;
...
...
@@ -68,7 +69,10 @@ const PrivateTransactionTags = () => {
}
if
(
isError
)
{
throw
new
Error
(
'
Private tags fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
const
list
=
isMobile
?
(
...
...
ui/publicTags/PublicTagsData.tsx
View file @
d4cc9510
...
...
@@ -7,6 +7,7 @@ import useApiQuery from 'lib/api/useApiQuery';
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
SkeletonListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/skeletons/SkeletonTable
'
;
...
...
@@ -69,7 +70,10 @@ const PublicTagsData = ({ changeToFormScreen, onTagDelete }: Props) => {
}
if
(
isError
)
{
throw
new
Error
(
'
Public tags fetch error
'
,
{
cause
:
error
});
if
(
error
.
status
===
403
)
{
throw
new
Error
(
'
Unverified email error
'
,
{
cause
:
error
});
}
return
<
DataFetchAlert
/>;
}
const
list
=
isMobile
?
(
...
...
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