mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-19 19:46:34 +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 */
|
/* 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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user