diff --git a/app/(default)/achievements/page.tsx b/app/(default)/achievements/page.tsx index d5f2b96..54e429e 100644 --- a/app/(default)/achievements/page.tsx +++ b/app/(default)/achievements/page.tsx @@ -1,15 +1,17 @@ "use client"; import { useEffect, useState } from "react"; +import axios from "axios"; interface Achiever { - imageUrl: string; - Email: string; - Name: string; - Batch: number; - Portfolio: string; - Internship: string; - CompanyPosition: string; + imageUrl?: string; + image?: File; + email: string; + name: string; + batch: number; + portfolio: string; + internship: string; + companyPosition: string; achievements: string[]; } @@ -19,18 +21,18 @@ function AchievementCard({ achiever }: { achiever: Achiever }) {
{`${achiever.Name}'s

- {achiever.Name} + {achiever.name}

))} @@ -123,11 +141,13 @@ export default function AchievementsPage() { setNewAchievement((prev) => ({ ...prev, - Email: e.target.value, + email: e.target.value, })) } className="w-full p-3 bg-gray-800 rounded" @@ -138,11 +158,13 @@ export default function AchievementsPage() { setNewAchievement((prev) => ({ ...prev, - Name: e.target.value, + name: e.target.value, })) } className="w-full p-3 bg-gray-800 rounded" @@ -153,11 +175,13 @@ export default function AchievementsPage() { setNewAchievement((prev) => ({ ...prev, - Batch: Number(e.target.value), + batch: Number(e.target.value), })) } className="w-full p-3 bg-gray-800 rounded" @@ -168,11 +192,13 @@ export default function AchievementsPage() { setNewAchievement((prev) => ({ ...prev, - Portfolio: e.target.value, + portfolio: e.target.value, })) } className="w-full p-3 bg-gray-800 rounded" @@ -187,13 +213,13 @@ export default function AchievementsPage() {