saving connection log in DB, added Dispo stats
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Logbook from "./_components/Logbook";
|
||||
import { ArrowRight, NotebookText, Award, RocketIcon } from "lucide-react";
|
||||
import { ArrowRight, NotebookText } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import Events from "./_components/Events";
|
||||
import StatsClientWrapper from "./_components/StatsClientWrapper";
|
||||
import { Stats } from "./_components/Stats";
|
||||
import { Badges } from "./_components/Badges";
|
||||
|
||||
/*
|
||||
@@ -15,10 +15,16 @@ Badges
|
||||
Aktive Events / Mandatory Events
|
||||
*/
|
||||
|
||||
export default function Home() {
|
||||
export default async function Home({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: { stats?: "pilot" | "dispo" };
|
||||
}) {
|
||||
const { stats } = await searchParams;
|
||||
const view = stats || "pilot";
|
||||
return (
|
||||
<div>
|
||||
<StatsClientWrapper />
|
||||
<Stats stats={view} />
|
||||
|
||||
<div className="grid grid-cols-6 gap-4">
|
||||
<div className="card bg-base-200 shadow-xl mb-4 col-span-6 xl:col-span-3">
|
||||
|
||||
Reference in New Issue
Block a user