Commit 74c88905 authored by tom's avatar tom

ssr - no, csr - yes

parent a03d161b
...@@ -2,17 +2,8 @@ import React from 'react'; ...@@ -2,17 +2,8 @@ import React from 'react';
import type { NextPage } from 'next'; import type { NextPage } from 'next';
import Head from 'next/head' import Head from 'next/head'
import fetch from 'api/utils/fetch';
import PrivateTags from 'ui/pages/PrivateTags'; import PrivateTags from 'ui/pages/PrivateTags';
export async function getServerSideProps() {
const response = await fetch('/account/v1/user/tags/address')
const data = await response.json()
return { props: { data } }
}
const PrivateTagsPage: NextPage = () => { const PrivateTagsPage: NextPage = () => {
return ( return (
<> <>
......
...@@ -15,6 +15,10 @@ import PrivateAddressTags from 'ui/privateTags/PrivateAddressTags'; ...@@ -15,6 +15,10 @@ import PrivateAddressTags from 'ui/privateTags/PrivateAddressTags';
import PrivateTransactionTags from 'ui/privateTags/PrivateTransactionTags'; import PrivateTransactionTags from 'ui/privateTags/PrivateTransactionTags';
const PrivateTags: React.FC = () => { const PrivateTags: React.FC = () => {
React.useEffect(() => {
fetch('/api/account/private-tags/address')
}, []);
return ( return (
<Page> <Page>
<Box h="100%"> <Box h="100%">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment