diff --git a/web/pages/date-docs/[username].tsx b/web/pages/date-docs/[username].tsx
index 35270bef..112f2cde 100644
--- a/web/pages/date-docs/[username].tsx
+++ b/web/pages/date-docs/[username].tsx
@@ -1,5 +1,5 @@
import { getDateDoc } from 'web/lib/firebase/posts'
-import { LinkIcon } from '@heroicons/react/outline'
+import { ArrowLeftIcon, LinkIcon } from '@heroicons/react/outline'
import { Page } from 'web/components/page'
import dayjs from 'dayjs'
@@ -18,19 +18,21 @@ import { track } from '@amplitude/analytics-browser'
import toast from 'react-hot-toast'
import { copyToClipboard } from 'web/lib/util/copy'
import { useUser } from 'web/hooks/use-user'
-import { RichEditPost } from '../post/[...slugs]'
+import { PostCommentsActivity, RichEditPost } from '../post/[...slugs]'
import { usePost } from 'web/hooks/use-post'
+import { useTipTxns } from 'web/hooks/use-tip-txns'
+import { useCommentsOnPost } from 'web/hooks/use-comments'
export async function getStaticProps(props: { params: { username: string } }) {
const { username } = props.params
- const { user, post } = (await getDateDoc(username)) ?? {
- user: null,
+ const { user: creator, post } = (await getDateDoc(username)) ?? {
+ creator: null,
post: null,
}
return {
props: {
- user,
+ creator,
post,
},
revalidate: 5, // regenerate after five seconds
@@ -41,19 +43,38 @@ export async function getStaticPaths() {
return { paths: [], fallback: 'blocking' }
}
-export default function DateDocPage(props: {
- user: User | null
+export default function DateDocPageHelper(props: {
+ creator: User | null
post: DateDoc | null
}) {
- const { user, post } = props
+ const { creator, post } = props
- if (!user || !post) return