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
d07e21c5
Commit
d07e21c5
authored
May 15, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dynamic import for pages content
parent
e938c242
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
7 deletions
+16
-7
api_key.tsx
pages/account/api_key.tsx
+2
-1
custom_abi.tsx
pages/account/custom_abi.tsx
+3
-1
public_tags_request.tsx
pages/account/public_tags_request.tsx
+3
-1
tag_address.tsx
pages/account/tag_address.tsx
+5
-3
watchlist.tsx
pages/account/watchlist.tsx
+3
-1
No files found.
pages/account/api_key.tsx
View file @
d07e21c5
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
dynamic
from
'
next/dynamic
'
;
import
Head
from
'
next/head
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
ApiKeys
from
'
ui/pages/ApiKeys
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
const
ApiKeys
=
dynamic
(()
=>
import
(
'
ui/pages/ApiKeys
'
),
{
ssr
:
false
});
const
ApiKeysPage
:
NextPage
=
()
=>
{
const
ApiKeysPage
:
NextPage
=
()
=>
{
const
title
=
getNetworkTitle
();
const
title
=
getNetworkTitle
();
...
...
pages/account/custom_abi.tsx
View file @
d07e21c5
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
dynamic
from
'
next/dynamic
'
;
import
Head
from
'
next/head
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
CustomAbi
from
'
ui/pages/CustomAbi
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
const
CustomAbi
=
dynamic
(()
=>
import
(
'
ui/pages/CustomAbi
'
),
{
ssr
:
false
});
const
CustomAbiPage
:
NextPage
=
()
=>
{
const
CustomAbiPage
:
NextPage
=
()
=>
{
const
title
=
getNetworkTitle
();
const
title
=
getNetworkTitle
();
return
(
return
(
...
...
pages/account/public_tags_request.tsx
View file @
d07e21c5
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
dynamic
from
'
next/dynamic
'
;
import
Head
from
'
next/head
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
PublicTags
from
'
ui/pages/PublicTags
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
const
PublicTags
=
dynamic
(()
=>
import
(
'
ui/pages/PublicTags
'
),
{
ssr
:
false
});
const
PublicTagsPage
:
NextPage
=
()
=>
{
const
PublicTagsPage
:
NextPage
=
()
=>
{
const
title
=
getNetworkTitle
();
const
title
=
getNetworkTitle
();
return
(
return
(
...
...
pages/account/tag_address.tsx
View file @
d07e21c5
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
dynamic
from
'
next/dynamic
'
;
import
Head
from
'
next/head
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
PrivateTags
from
'
ui/pages/PrivateTags
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
const
AddressTagsPage
:
NextPage
=
()
=>
{
const
PrivateTags
=
dynamic
(()
=>
import
(
'
ui/pages/PrivateTags
'
),
{
ssr
:
false
});
const
PrivateTagsPage
:
NextPage
=
()
=>
{
const
title
=
getNetworkTitle
();
const
title
=
getNetworkTitle
();
return
(
return
(
<>
<>
...
@@ -18,6 +20,6 @@ const AddressTagsPage: NextPage = () => {
...
@@ -18,6 +20,6 @@ const AddressTagsPage: NextPage = () => {
);
);
};
};
export
default
Address
TagsPage
;
export
default
Private
TagsPage
;
export
{
getServerSideProps
}
from
'
lib/next/getServerSideProps
'
;
export
{
getServerSideProps
}
from
'
lib/next/getServerSideProps
'
;
pages/account/watchlist.tsx
View file @
d07e21c5
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
dynamic
from
'
next/dynamic
'
;
import
Head
from
'
next/head
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
WatchList
from
'
ui/pages/Watchlist
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
const
WatchList
=
dynamic
(()
=>
import
(
'
ui/pages/Watchlist
'
),
{
ssr
:
false
});
const
WatchListPage
:
NextPage
=
()
=>
{
const
WatchListPage
:
NextPage
=
()
=>
{
const
title
=
getNetworkTitle
();
const
title
=
getNetworkTitle
();
return
(
return
(
...
...
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