Browse Source

feat - project setup done for first build

main
khanshanawaz10 3 months ago
parent
commit
e4470bbb81
2 changed files with 13 additions and 14 deletions
  1. +6
    -3
      src/components/dashboard/EventTable.tsx
  2. +7
    -11
      src/pages/index.tsx

+ 6
- 3
src/components/dashboard/EventTable.tsx View File

@ -29,9 +29,12 @@ const EventTable: React.FC<EventTableProps> = ({ events, className = '' }) => {
let aValue = a[sortField as keyof typeof a]; let aValue = a[sortField as keyof typeof a];
let bValue = b[sortField as keyof typeof b]; 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; if (aValue === null) return 1;


+ 7
- 11
src/pages/index.tsx View File

@ -1,13 +1,9 @@
// pages/index.tsx
import React from 'react';
// pages/index.js (or pages/index.jsx)
const HomePage = () => {
return (
<div style={{ padding: '2rem' }}>
<h1>Welcome to EventDash!</h1>
<p>This is your homepage (index.tsx)</p>
</div>
);
};
import LoginPage from "./loginPage";
export default HomePage;
// import LoginPage from "@/components/LoginPage"; // Adjust path if needed
export default function Home() {
return <LoginPage />;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.