diff --git a/client/components/app/Comment/index.jsx b/client/components/app/Comment/index.jsx index 8b6bd1f..1c1982e 100644 --- a/client/components/app/Comment/index.jsx +++ b/client/components/app/Comment/index.jsx @@ -18,7 +18,7 @@ export default function Comment({ comment: initialComment, onDelete }) { onDelete={onDelete} /> - +
diff --git a/client/components/app/Markdown/index.jsx b/client/components/app/Markdown/index.jsx index ef27e3d..f5afb10 100644 --- a/client/components/app/Markdown/index.jsx +++ b/client/components/app/Markdown/index.jsx @@ -1,5 +1,4 @@ import { usePathname } from 'next/navigation'; -import { useState } from 'react'; import Link from 'next/link'; import Markdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; @@ -8,8 +7,6 @@ import { SquareArrowOutUpRight } from 'lucide-react'; export default function MarkdownContent({ content }) { const isPostPage = usePathname().includes('/app/posts/'); - const [isExpanded, setIsExpanded] = useState(isPostPage); - const customRenderers = { img: ({ src, alt }) => ( @@ -36,18 +33,10 @@ export default function MarkdownContent({ content }) { {content} - {!isPostPage && ( -
setIsExpanded(!isExpanded)} - className='text-xs cursor-pointer w-fit' - > - {isExpanded ? 'gizle' : 'devamını oku'} -
- )}
); }