diff --git a/apps/frontend/src/routes/_assessmentLayout/assessment/index.lazy.tsx b/apps/frontend/src/routes/_assessmentLayout/assessment/index.lazy.tsx
index e4bdc5a..0685511 100644
--- a/apps/frontend/src/routes/_assessmentLayout/assessment/index.lazy.tsx
+++ b/apps/frontend/src/routes/_assessmentLayout/assessment/index.lazy.tsx
@@ -12,12 +12,12 @@ import {
Card,
CardContent,
CardDescription,
- CardHeader,
} from "@/shadcn/components/ui/card";
import { Button } from "@/shadcn/components/ui/button";
import { Textarea } from "@/shadcn/components/ui/textarea";
import { Label } from "@/shadcn/components/ui/label";
import { RadioGroup, RadioGroupItem } from "@/shadcn/components/ui/radio-group";
+import { ScrollArea } from "@/shadcn/components/ui/scroll-area";
import {
Pagination,
} from "@/shadcn/components/ui/pagination-assessment";
@@ -864,102 +864,102 @@ export default function AssessmentPage() {
{/* Skor Aspek dan Sub-Aspek */}
-
- Nilai Sementara
-
+
+ Nilai Sementara
+
+
+
+
+ {filteredAspects.length > 0 ? (
+ filteredAspects.map((aspect) => {
+ const aspectScore = parseFloat(aspect.averageScore).toFixed(2);
+ const aspectScoreValue = parseFloat(aspectScore);
-
-
- {filteredAspects.length > 0 ? (
- filteredAspects.map((aspect) => {
- const aspectScore = parseFloat(aspect.averageScore).toFixed(2);
- const aspectScoreValue = parseFloat(aspectScore);
+ return (
+
+ {aspect.aspectName}
+ = 4.5
+ ? "text-green-700"
+ : aspectScoreValue >= 3.5
+ ? "text-green-400"
+ : aspectScoreValue >= 2.5
+ ? "text-yellow-400"
+ : aspectScoreValue >= 1.5
+ ? "text-orange-500"
+ : "text-red-500"
+ }`}
+ >
+ {aspectScore}
+
+
+ );
+ })
+ ) : (
+ Data aspek ini kosong
+ )}
+
- return (
-
- {aspect.aspectName}
- = 4.01
- ? "text-green-700"
- : aspectScoreValue >= 3.01
- ? "text-green-400"
- : aspectScoreValue >= 2.01
- ? "text-yellow-400"
- : aspectScoreValue >= 1.01
- ? "text-orange-500"
- : "text-red-500"
- }`}
- >
- {aspectScore}
-
-
- );
- })
- ) : (
- Data aspek ini kosong
- )}
-
+ {/* Garis pembatas */}
+
- {/* Garis pembatas */}
-
+ {/* Skor Sub-Aspek */}
+ {filteredSubAspects.length > 0 ? (
+ filteredSubAspects.map((subAspect) => {
+ const subAspectScore = parseFloat(subAspect.averageScore).toFixed(2);
+ const subAspectScoreValue = parseFloat(subAspectScore);
- {/* Skor Sub-Aspek */}
- {filteredSubAspects.length > 0 ? (
- filteredSubAspects.map((subAspect) => {
- const subAspectScore = parseFloat(subAspect.averageScore).toFixed(2);
- const subAspectScoreValue = parseFloat(subAspectScore);
+ return (
+
+ {subAspect.subAspectName}
+ = 4.5
+ ? "text-green-700"
+ : subAspectScoreValue >= 3.5
+ ? "text-green-400"
+ : subAspectScoreValue >= 2.5
+ ? "text-yellow-400"
+ : subAspectScoreValue >= 1.5
+ ? "text-orange-500"
+ : "text-red-500"
+ }`}
+ >
+ {subAspectScore}
+
+
+ );
+ })
+ ) : (
+ Data sub-aspek ini kosong
+ )}
+
+ {/* Tombol Selesai */}
+
+
+ Selesai
+
+
+
- return (
-
- {subAspect.subAspectName}
- = 4.01
- ? "text-green-700"
- : subAspectScoreValue >= 3.01
- ? "text-green-400"
- : subAspectScoreValue >= 2.01
- ? "text-yellow-400"
- : subAspectScoreValue >= 1.01
- ? "text-orange-500"
- : "text-red-500"
- }`}
- >
- {subAspectScore}
-
-
- );
- })
- ) : (
- Data sub-aspek ini kosong
- )}
+ {/* Modal untuk konfirmasi selesai asesmen */}
+ setModalOpen(false)}
+ onConfirm={handleConfirmFinish}
+ assessmentId={assessmentId}
+ />
- {/* Tombol Selesai */}
-
-
- Selesai
-
-
-
-
- {/* Modal untuk konfirmasi selesai asesmen */}
- setModalOpen(false)}
- onConfirm={handleConfirmFinish}
- assessmentId={assessmentId}
- />
-
- {/* Modal untuk peringatan jika ada pertanyaan yang belum dijawab */}
- setValidationModalOpen(false)}
- unansweredQuestions={unansweredQuestions}
- />
+ {/* Modal untuk peringatan jika ada pertanyaan yang belum dijawab */}
+ setValidationModalOpen(false)}
+ unansweredQuestions={unansweredQuestions}
+ />