shared library hinzugefügt

This commit is contained in:
PxlLoewe
2025-06-26 20:40:23 -07:00
parent a93e95eb95
commit 122cdda486
59 changed files with 163 additions and 246 deletions

View File

@@ -1,9 +1,9 @@
import { asPublicUser, BADGES, PublicUser } from "@repo/db";
import { useQuery } from "@tanstack/react-query";
import { Badge } from "_components/Badge/Badge";
import { getConnectedAircraftsAPI } from "_querys/aircrafts";
import { getConnectedDispatcherAPI } from "_querys/dispatcher";
import { Plane, Workflow } from "lucide-react";
import { Badge } from "@repo/shared-components";
export const ConnectedDispatcher = () => {
const { data: dispatcher } = useQuery({
@@ -77,7 +77,7 @@ export const ConnectedDispatcher = () => {
{(d.publicUser as unknown as PublicUser).badges
.filter((b) => b.startsWith("D"))
.map((b) => (
<Badge name={b as BADGES} className="h-8 w-12" />
<Badge badge={b as BADGES} className="h-8 w-12" />
))}
</div>
</li>