Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,9 @@ import Footer from "@/components/Footer";
import { IEvent } from "@/database";
import { getAllEvents } from "@/lib/actions/event.actions";

interface PageProps {
searchParams: Promise<{
query?: string;
mode?: string;
tag?: string;
}>;
}

const Page = async ({ searchParams }: PageProps) => {
const resolvedParams = await searchParams;
export default async function Page() {
// 1. Fetch general events
const events = await getAllEvents();

const { events } = await getAllEvents({
query: resolvedParams.query,
Expand Down
Loading