shared library hinzugefügt
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Award } from "lucide-react";
|
||||
import { getServerSession } from "../../api/auth/[...nextauth]/auth";
|
||||
import { Badge } from "../../_components/Badge/Badge";
|
||||
import { Badge } from "@repo/shared-components";
|
||||
import { JSX } from "react";
|
||||
|
||||
export const Badges: () => Promise<JSX.Element> = async () => {
|
||||
@@ -16,8 +16,14 @@ export const Badges: () => Promise<JSX.Element> = async () => {
|
||||
</span>
|
||||
</h2>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{session.user.badges.length === 0 && (
|
||||
<span className="text-sm text-gray-500">
|
||||
Noch ziemlich leer hier. Du kannst dir Abzeichen erarbeiten indem du an Events
|
||||
teilnimmst.
|
||||
</span>
|
||||
)}
|
||||
{session.user.badges.map((badge, i) => {
|
||||
return <Badge name={badge} key={`${badge} - ${i}`} />;
|
||||
return <Badge badge={badge} key={`${badge} - ${i}`} />;
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user