Skip to content

Commit 61a12fb

Browse files
lint
1 parent 44d988c commit 61a12fb

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

apps/portal/src/components/Document/APIEndpointMeta/ApiEndpoint.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
2-
import { ExternalLinkIcon } from "lucide-react";
32
import { cn } from "../../../lib/utils";
43
import { CodeBlock } from "../Code";
54
import { Details } from "../Details";
@@ -111,7 +110,11 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) {
111110
return (
112111
<div>
113112
<div>
114-
<Heading anchorId={`request#${props.metadata.method.toLowerCase()}${props.metadata.path}`} className="text-lg lg:text-lg" level={3}>
113+
<Heading
114+
anchorId={`request#${props.metadata.method.toLowerCase()}${props.metadata.path}`}
115+
className="text-lg lg:text-lg"
116+
level={3}
117+
>
115118
Request
116119
</Heading>
117120

@@ -181,7 +184,11 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) {
181184
</div>
182185

183186
<div>
184-
<Heading anchorId={`response#${props.metadata.method.toLowerCase()}${props.metadata.path}`} className="text-lg lg:text-lg" level={3}>
187+
<Heading
188+
anchorId={`response#${props.metadata.method.toLowerCase()}${props.metadata.path}`}
189+
className="text-lg lg:text-lg"
190+
level={3}
191+
>
185192
Response
186193
</Heading>
187194
<div className="overflow-hidden rounded-lg border">

apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ async function OpenApiEndpointInner({
502502

503503
const BASE_API_URL = "https://api.thirdweb.com";
504504

505-
function generateReferenceUrl(tag: string, path: string, method: string): string {
505+
function generateReferenceUrl(
506+
tag: string,
507+
path: string,
508+
method: string,
509+
): string {
506510
return `${BASE_API_URL}/reference#tag/${tag.toLowerCase()}/${method.toLowerCase()}${path}`;
507-
}
511+
}

apps/portal/src/components/Document/APIEndpointMeta/RequestExample.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22

3+
import { ExternalLinkIcon } from "lucide-react";
34
import { useEffect, useState } from "react";
45
import { Badge } from "@/components/ui/badge";
56
import {
@@ -9,7 +10,6 @@ import {
910
SelectTrigger,
1011
SelectValue,
1112
} from "@/components/ui/select";
12-
import { ExternalLinkIcon } from "lucide-react";
1313

1414
export function RequestExample(props: {
1515
codeExamples: Array<{
@@ -79,7 +79,12 @@ export function RequestExample(props: {
7979
{props.method}
8080
</Badge>
8181
<span className="truncate font-mono text-sm">
82-
<a href={props.referenceUrl} target="_blank" rel="noopener noreferrer" className="flex items-center gap-2 hover:underline">
82+
<a
83+
href={props.referenceUrl}
84+
target="_blank"
85+
rel="noopener noreferrer"
86+
className="flex items-center gap-2 hover:underline"
87+
>
8388
{props.endpointUrl}
8489
<ExternalLinkIcon className="size-3" />
8590
</a>

0 commit comments

Comments
 (0)