Added Data to SituationsBoard
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { Award } from "lucide-react";
|
||||
import { getServerSession } from "../../api/auth/[...nextauth]/auth";
|
||||
import { Badge } from "../../_components/Badge/Badge";
|
||||
import { JSX } from "react";
|
||||
|
||||
export const Badges = async () => {
|
||||
export const Badges: () => Promise<JSX.Element> = async () => {
|
||||
const session = await getServerSession();
|
||||
if (!session) return null;
|
||||
if (!session) return <div />;
|
||||
|
||||
return (
|
||||
<div className="card bg-base-200 shadow-xl mb-4 col-span-6 xl:col-span-3">
|
||||
|
||||
Reference in New Issue
Block a user