From 667bb089f5f4b9a531cf0d0c332d83472a399e4f Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:51:35 -0500 Subject: [PATCH] chore: add todo --- src/components/Post.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Post.tsx b/src/components/Post.tsx index c77540b..b364b83 100644 --- a/src/components/Post.tsx +++ b/src/components/Post.tsx @@ -1,8 +1,7 @@ +import { PostWithUserDto } from '@/app/types'; import { Text } from '@codemirror/state'; import Image from 'next/image'; -import { Doc, Id } from '../../convex/_generated/dataModel'; import PostContent from './PostContent'; -import { PostWithUserDto } from '@/app/types'; export default function Post({ post }: { post: PostWithUserDto }) { const username = post.user.clerkUsername ?? post.user._id; @@ -13,6 +12,11 @@ export default function Post({ post }: { post: PostWithUserDto }) { }); const dayOfMonth = createdPostDate.getDate(); + // TODO: Posts content should only be allowed to grow to a set height + // after which the post's content should be truncated + // and we should display a 'more' link to load the post + // in an individual page + return (