- {RESUME_COMMENTS_SECTIONS.map(({ label, value }) => {
- const comments = commentsQuery.data
- ? commentsQuery.data.filter((comment: ResumeComment) => {
- return (comment.section as string) === value;
- })
- : [];
- const commentCount = comments.length;
+
+ {RESUME_COMMENTS_SECTIONS.map(({ label, value }) => {
+ const comments = commentsQuery.data
+ ? commentsQuery.data.filter((comment: ResumeComment) => {
+ return (comment.section as string) === value;
+ })
+ : [];
+ const commentCount = comments.length;
- return (
-
- {/* CommentHeader Section */}
-
-
- {renderIcon(value)}
+ return (
+
+ {/* CommentHeader Section */}
+
+
+ {renderIcon(value)}
- {label}
-
-
+
{label}
+
+
- {/* Comment Section */}
-
- {commentCount > 0 ? (
- comments.map((comment) => {
- return (
-
- );
- })
- ) : (
-
-
+ {/* Comment Section */}
+
+ {commentCount > 0 ? (
+ comments.map((comment) => {
+ return (
+
+ );
+ })
+ ) : (
+
+
-
- There are no comments for this section yet!
-
-
- )}
+
+ There are no comments for this section yet!
+
-
- );
- })}
-
- )}
+ )}
+
+
+ );
+ })}
);
}
diff --git a/apps/portal/src/pages/resumes/[resumeId].tsx b/apps/portal/src/pages/resumes/[resumeId].tsx
index beb8c793..15d50e83 100644
--- a/apps/portal/src/pages/resumes/[resumeId].tsx
+++ b/apps/portal/src/pages/resumes/[resumeId].tsx
@@ -3,7 +3,7 @@ import formatDistanceToNow from 'date-fns/formatDistanceToNow';
import Error from 'next/error';
import Head from 'next/head';
import { useRouter } from 'next/router';
-import { signIn, useSession } from 'next-auth/react';
+import { useSession } from 'next-auth/react';
import { useState } from 'react';
import {
AcademicCapIcon,
@@ -142,24 +142,21 @@ export default function ResumeReviewPage() {
const renderReviewButton = () => {
if (session === null) {
return (
-
+
);
}
return (
-
{renderReviewButton()}