diff --git a/apps/docs/src/components/workshop/WorkshopAdmin.tsx b/apps/docs/src/components/workshop/WorkshopAdmin.tsx index 6d0e897a5..bec0073a3 100644 --- a/apps/docs/src/components/workshop/WorkshopAdmin.tsx +++ b/apps/docs/src/components/workshop/WorkshopAdmin.tsx @@ -13,21 +13,20 @@ const styles = { adminList: "space-y-4", adminSummary: "flex items-center justify-between rounded-lg border border-border bg-card px-4 py-3 text-sm", adminGroup: "rounded-xl border border-border bg-card p-5 shadow-sm", - adminHeading: "flex flex-wrap items-start justify-between gap-3 [&_h2]:font-semibold [&_span]:text-sm [&_span]:text-muted-foreground", + adminHeading: + "flex flex-wrap items-start justify-between gap-3 [&_h2]:font-semibold [&_span]:text-sm [&_span]:text-muted-foreground", reportCount: "rounded-full bg-destructive/10 px-2 py-1 !text-destructive", meta: "mt-3 flex flex-wrap gap-4 text-xs text-muted-foreground", - moderationReport: "mt-4 rounded-lg border border-destructive/20 bg-destructive/5 p-4 [&_strong]:block [&_span]:text-xs [&_span]:text-muted-foreground [&_p]:my-2 [&_p]:text-sm", + moderationReport: + "mt-4 rounded-lg border border-destructive/20 bg-destructive/5 p-4 [&_strong]:block [&_span]:text-xs [&_span]:text-muted-foreground [&_p]:my-2 [&_p]:text-sm", empty: "py-12 text-center text-sm text-muted-foreground", } as const; export function WorkshopAdmin({ workshopUrl }: { workshopUrl?: string }) { - const client = useMemo( - () => { - const url = workshopUrl || (typeof window === "undefined" ? "" : window.location.origin); - return url ? new WorkshopClient(url) : new WorkshopClient(); - }, - [workshopUrl], - ); + const client = useMemo(() => { + const url = workshopUrl || (typeof window === "undefined" ? "" : window.location.origin); + return url ? new WorkshopClient(url) : new WorkshopClient(); + }, [workshopUrl]); const [user, setUser] = useState(null); const [reports, setReports] = useState([]); const [submissions, setSubmissions] = useState([]); diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index 8dbbdb7a0..d6f1416ba 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -14,7 +14,6 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "baseUrl": ".", "paths": { "@/*": ["./src/*"], "@site/*": ["./*"]