diff --git a/src/components/dashboard/EventTable.tsx b/src/components/dashboard/EventTable.tsx index 0a272e8..d8c5319 100644 --- a/src/components/dashboard/EventTable.tsx +++ b/src/components/dashboard/EventTable.tsx @@ -29,9 +29,12 @@ const EventTable: React.FC = ({ events, className = '' }) => { let aValue = a[sortField as keyof typeof a]; let bValue = b[sortField as keyof typeof b]; - if (sortField === 'created_at') { - aValue = new Date(aValue as string).getTime(); - bValue = new Date(bValue as string).getTime(); + let aVal: string | number = aValue; + let bVal: string | number = bValue; + + if (sortField === "created_at") { + aVal = new Date(aValue as string).getTime(); + bVal = new Date(bValue as string).getTime(); } if (aValue === null) return 1; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d1db439..9e3df92 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,13 +1,9 @@ -// pages/index.tsx -import React from 'react'; +// pages/index.js (or pages/index.jsx) -const HomePage = () => { - return ( -
-

Welcome to EventDash!

-

This is your homepage (index.tsx)

-
- ); -}; +import LoginPage from "./loginPage"; -export default HomePage; +// import LoginPage from "@/components/LoginPage"; // Adjust path if needed + +export default function Home() { + return ; +}