updated profile pages

This commit is contained in:
Ren Amamiya 2023-02-25 15:28:37 +07:00
parent 3067ece48a
commit 19b99349a9
2 changed files with 3 additions and 18 deletions

View File

@ -1,25 +1,10 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import BaseLayout from '@layouts/baseLayout';
import { GetStaticPaths } from 'next';
import { JSXElementConstructor, ReactElement, ReactFragment, ReactPortal } from 'react';
export default function Page({ pubkey }: { pubkey: string }) {
return <div>{pubkey}</div>;
}
export const getStaticPaths: GetStaticPaths = async () => {
return {
paths: [],
fallback: 'blocking',
};
};
export async function getStaticProps(context) {
const pubkey = context.params.pubkey;
return {
props: { pubkey },
};
export default function Page() {
return <div></div>;
}
Page.getLayout = function getLayout(

View File

@ -75,7 +75,7 @@ export default function Page() {
// redirect to newsfeed
setTimeout(() => {
setLoading(false);
router.push('/feed/following');
router.reload();
}, 1500);
};