fixed built errors in ssg mode

This commit is contained in:
Ren Amamiya
2023-02-23 07:39:18 +07:00
parent 247f28ae75
commit 8a79938391
5 changed files with 35 additions and 43 deletions

View File

@@ -17,14 +17,8 @@ const DynamicContent = dynamic(() => import('@components/note/content'), {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const Single = memo(function Single({ event }: { event: any }) {
const openThread = () => {
console.log('ok');
};
return (
<div
onClick={() => openThread()}
className="flex h-min min-h-min w-full cursor-pointer select-text flex-col border-b border-zinc-800 py-4 px-6 hover:bg-zinc-800">
<div className="flex h-min min-h-min w-full cursor-pointer select-text flex-col border-b border-zinc-800 py-4 px-6 hover:bg-zinc-800">
<div className="flex flex-col">
<User pubkey={event.pubkey} time={event.created_at} />
<div className="-mt-4 pl-[60px]">