Skip to content

Commit 27a2a81

Browse files
add scalar react component
1 parent bcadeae commit 27a2a81

File tree

4 files changed

+1514
-4
lines changed

4 files changed

+1514
-4
lines changed

apps/dashboard/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@radix-ui/react-slot": "^1.2.0",
4646
"@radix-ui/react-switch": "^1.1.4",
4747
"@radix-ui/react-tooltip": "1.2.0",
48+
"@scalar/api-reference-react": "^0.6.19",
4849
"@sentry/nextjs": "9.12.0",
4950
"@shazow/whatsabi": "0.21.0",
5051
"@tanstack/react-query": "5.72.1",
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
"use client";
2+
import { ApiReferenceReact } from "@scalar/api-reference-react";
3+
import "@scalar/api-reference-react/style.css";
4+
import { THIRDWEB_ENGINE_CLOUD_URL } from "@/constants/env";
5+
16
export default function TransactionsExplorerPage() {
2-
return <div>Explorer</div>;
7+
return (
8+
<div>
9+
<ApiReferenceReact
10+
configuration={{
11+
url: `${THIRDWEB_ENGINE_CLOUD_URL}/openapi`,
12+
}}
13+
/>
14+
</div>
15+
);
316
}

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { TabPathLinks } from "@/components/ui/tabs";
44
import { CloudIcon } from "lucide-react";
55
import Link from "next/link";
66
import { redirect } from "next/navigation";
7-
import { Badge } from "../../../../../@/components/ui/badge";
8-
import { THIRDWEB_ENGINE_CLOUD_URL } from "../../../../../@/constants/env";
7+
import { Badge } from "@/components/ui/badge";
8+
import { THIRDWEB_ENGINE_CLOUD_URL } from "@/constants/env";
99

1010
export default async function Page(props: {
1111
params: Promise<{ team_slug: string; project_slug: string }>;

0 commit comments

Comments
 (0)