From 8cb0bbcd71a843f3b1ddb3d9c442fe4a5dfde1cb Mon Sep 17 00:00:00 2001
From: IceTeaXXD <13521024@std.stei.itb.ac.id>
Date: Sun, 12 Nov 2023 15:24:45 +0700
Subject: [PATCH] refactor: assignment matches assignmentcardsprops

---
 src/components/Assignment/AssignmentCards.tsx   | 2 +-
 src/components/Assignment/AssignmentDetails.tsx | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/Assignment/AssignmentCards.tsx b/src/components/Assignment/AssignmentCards.tsx
index 147fb55..99085de 100644
--- a/src/components/Assignment/AssignmentCards.tsx
+++ b/src/components/Assignment/AssignmentCards.tsx
@@ -11,7 +11,7 @@ import React from "react"
 import { FiEdit } from "react-icons/fi"
 import { Link } from "react-router-dom"
 
-interface AssignmentCardsProps {
+export interface AssignmentCardsProps {
   index: Number
   scholarship_id: Number
   assignment_id: Number
diff --git a/src/components/Assignment/AssignmentDetails.tsx b/src/components/Assignment/AssignmentDetails.tsx
index 37756ef..cc3388a 100644
--- a/src/components/Assignment/AssignmentDetails.tsx
+++ b/src/components/Assignment/AssignmentDetails.tsx
@@ -28,7 +28,7 @@ import { FiEdit } from "react-icons/fi"
 import { useParams } from "react-router-dom"
 import axios from "../../api/axios"
 import { Field, Form, Formik } from "formik"
-import { AssignmentCards } from "./AssignmentCards"
+import { AssignmentCards, AssignmentCardsProps } from "./AssignmentCards"
 
 const useFetchAssignments = () => {
   const [assignments, setAssignments] = useState([])
@@ -194,7 +194,7 @@ const AssignmentDetails = () => {
       <SimpleGrid columns={1} spacing={"5"} mt={16} mb={10} mx={"auto"}>
         <CreateAssignmentModal />
         {assignments.length > 0 ? (
-          assignments.map((assignment: any, index: any) => (
+          assignments.map((assignment: AssignmentCardsProps, index: any) => (
             <AssignmentCards
               key={index}
               index={index}
-- 
GitLab