updated profile pages
This commit is contained in:
@@ -1,25 +1,10 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
import BaseLayout from '@layouts/baseLayout';
|
import BaseLayout from '@layouts/baseLayout';
|
||||||
|
|
||||||
import { GetStaticPaths } from 'next';
|
|
||||||
import { JSXElementConstructor, ReactElement, ReactFragment, ReactPortal } from 'react';
|
import { JSXElementConstructor, ReactElement, ReactFragment, ReactPortal } from 'react';
|
||||||
|
|
||||||
export default function Page({ pubkey }: { pubkey: string }) {
|
export default function Page() {
|
||||||
return <div>{pubkey}</div>;
|
return <div></div>;
|
||||||
}
|
|
||||||
|
|
||||||
export const getStaticPaths: GetStaticPaths = async () => {
|
|
||||||
return {
|
|
||||||
paths: [],
|
|
||||||
fallback: 'blocking',
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export async function getStaticProps(context) {
|
|
||||||
const pubkey = context.params.pubkey;
|
|
||||||
return {
|
|
||||||
props: { pubkey },
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Page.getLayout = function getLayout(
|
Page.getLayout = function getLayout(
|
||||||
@@ -75,7 +75,7 @@ export default function Page() {
|
|||||||
// redirect to newsfeed
|
// redirect to newsfeed
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
router.push('/feed/following');
|
router.reload();
|
||||||
}, 1500);
|
}, 1500);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user