Add comments pagination, login and register pages

This commit is contained in:
Aaron William Po
2023-02-13 10:56:09 -05:00
parent 912008e68d
commit 80261a713b
16 changed files with 422 additions and 69 deletions

16
pages/logout/index.tsx Normal file
View File

@@ -0,0 +1,16 @@
import { NextPage } from 'next';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
const LogoutPage: NextPage = () => {
const router = useRouter();
useEffect(() => {
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
router.reload();
router.push('/');
}, [router]);
return <div />;
};
export default LogoutPage;