Clean up code. Install shadcnui elements for later
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
"use server";
|
||||
import { auth } from "~/auth";
|
||||
import No_Session from "~/components/auth/No_Session";
|
||||
import TT_Header from "~/components/ui/TT_Header";
|
||||
import Techs from "~/components/ui/Techs";
|
||||
import Header from "~/components/ui/Header";
|
||||
import { getEmployees } from "~/server/functions";
|
||||
import TechTable from "~/components/ui/TechTable";
|
||||
|
||||
export default async function HomePage() {
|
||||
const session = await auth();
|
||||
if (!session) {
|
||||
return <No_Session />
|
||||
} else {
|
||||
const employees = await getEmployees();
|
||||
return (
|
||||
<main className="min-h-screen
|
||||
bg-gradient-to-b from-[#111111] to-[#212325]">
|
||||
<TT_Header />
|
||||
<Techs />
|
||||
<Header />
|
||||
<TechTable employees={employees}/>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user