mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-19 11:43:30 +00:00
updated profile pages
This commit is contained in:
parent
3067ece48a
commit
19b99349a9
@ -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(
|
@ -75,7 +75,7 @@ export default function Page() {
|
||||
// redirect to newsfeed
|
||||
setTimeout(() => {
|
||||
setLoading(false);
|
||||
router.push('/feed/following');
|
||||
router.reload();
|
||||
}, 1500);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user