diff --git a/apps/portal/src/components/resumes/comments/CommentListItems.tsx b/apps/portal/src/components/resumes/comments/CommentListItems.tsx deleted file mode 100644 index 5e3e154d..00000000 --- a/apps/portal/src/components/resumes/comments/CommentListItems.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { useSession } from 'next-auth/react'; -import { Spinner } from '@tih/ui'; - -import Comment from './comment/Comment'; - -import type { ResumeComment } from '~/types/resume-comments'; - -type Props = Readonly<{ - comments: Array; - isLoading: boolean; -}>; - -export default function CommentListItems({ comments, isLoading }: Props) { - const { data: session } = useSession(); - - if (isLoading) { - return ( -
- -
- ); - } - - return ( -
- {comments.map((comment) => ( - - ))} -
- ); -} diff --git a/apps/portal/src/components/resumes/comments/CommentsList.tsx b/apps/portal/src/components/resumes/comments/CommentsList.tsx deleted file mode 100644 index e4f842cb..00000000 --- a/apps/portal/src/components/resumes/comments/CommentsList.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { useSession } from 'next-auth/react'; -import { useState } from 'react'; -import { Tabs } from '@tih/ui'; -import { Button } from '@tih/ui'; - -import { trpc } from '~/utils/trpc'; - -import CommentListItems from './CommentListItems'; -import { COMMENTS_SECTIONS } from './constants'; -import ResumeSignInButton from '../shared/ResumeSignInButton'; - -type CommentsListProps = Readonly<{ - resumeId: string; - setShowCommentsForm: (show: boolean) => void; -}>; - -export default function CommentsList({ - resumeId, - setShowCommentsForm, -}: CommentsListProps) { - const { data: sessionData } = useSession(); - const [tab, setTab] = useState(COMMENTS_SECTIONS[0].value); - - const commentsQuery = trpc.useQuery(['resumes.reviews.list', { resumeId }]); - const renderButton = () => { - if (sessionData === null) { - return ; - } - return ( -