Skip to content

Commit 4994fbe

Browse files
committed
lint
1 parent 1e918d0 commit 4994fbe

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default async function SupportPage() {
129129
teamId: undefined,
130130
});
131131

132-
const supportPromptPrefix ="";
132+
const supportPromptPrefix = "";
133133
const examplePrompts = [
134134
"ERC20 - Transfer Amount Exceeds Allowance",
135135
"Replacement transaction underpriced / Replacement fee too low",

apps/dashboard/src/app/nebula-app/(app)/components/Chats.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
22
import { cn } from "@/lib/utils";
33
import { MarkdownRenderer } from "components/contract-components/published-contract/markdown-renderer";
4-
import { AlertCircleIcon, ThumbsUpIcon, ThumbsDownIcon } from "lucide-react";
4+
import { AlertCircleIcon, ThumbsDownIcon, ThumbsUpIcon } from "lucide-react";
55
import { useEffect, useRef, useState } from "react";
66
import type { ThirdwebClient } from "thirdweb";
77
import type { NebulaSwapData } from "../api/chat";
@@ -457,7 +457,10 @@ function StyledMarkdownRenderer(props: {
457457
);
458458
}
459459

460-
function FeedbackButtons({ sessionId, messageText }: { sessionId: string | undefined; messageText: string }) {
460+
function FeedbackButtons({
461+
sessionId,
462+
messageText,
463+
}: { sessionId: string | undefined; messageText: string }) {
461464
const [feedback, setFeedback] = useState<"good" | "bad" | null>(null);
462465
const [loading, setLoading] = useState(false);
463466
const [thankYou, setThankYou] = useState(false);
@@ -484,7 +487,11 @@ function FeedbackButtons({ sessionId, messageText }: { sessionId: string | undef
484487
}
485488

486489
if (thankYou) {
487-
return <div className="mt-2 text-xs text-muted-foreground">Thank you for your feedback!</div>;
490+
return (
491+
<div className="mt-2 text-xs text-muted-foreground">
492+
Thank you for your feedback!
493+
</div>
494+
);
488495
}
489496

490497
return (

apps/dashboard/src/app/nebula-app/(app)/components/CustomChat/CustomChatButton.tsx

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

3-
import CustomChatContent from "./CustomChatContent";
4-
import type { ExamplePrompt } from "../../data/examplePrompts";
5-
import type { ThirdwebClient } from "thirdweb";
6-
import { useState, useCallback, useRef } from "react";
73
import { Button } from "@/components/ui/button";
8-
import { XIcon, MessageCircleIcon } from "lucide-react";
94
import { cn } from "@/lib/utils";
5+
import { MessageCircleIcon, XIcon } from "lucide-react";
6+
import { useCallback, useRef, useState } from "react";
7+
import type { ThirdwebClient } from "thirdweb";
8+
import type { ExamplePrompt } from "../../data/examplePrompts";
9+
import CustomChatContent from "./CustomChatContent";
1010

1111
export function CustomChatButton(props: {
1212
isLoggedIn: boolean;
@@ -53,7 +53,7 @@ export function CustomChatButton(props: {
5353
<div
5454
className={cn(
5555
"slide-in-from-bottom-20 zoom-in-95 fade-in-0 fixed bottom-0 left-0 z-50 flex h-[80vh] w-[100vw] animate-in flex-col overflow-hidden rounded-t-2xl border bg-background shadow-2xl duration-200 lg:right-6 lg:bottom-6 lg:left-auto lg:h-[80vh] lg:max-w-xl lg:rounded-xl",
56-
!isOpen && "hidden"
56+
!isOpen && "hidden",
5757
)}
5858
ref={ref}
5959
>
@@ -90,4 +90,4 @@ export function CustomChatButton(props: {
9090
</div>
9191
</>
9292
);
93-
}
93+
}

apps/dashboard/src/app/nebula-app/(app)/components/CustomChat/CustomChatContent.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22
import { Button } from "@/components/ui/button";
33
import { useTrack } from "hooks/analytics/useTrack";
4-
import { ArrowRightIcon, ArrowUpRightIcon } from "lucide-react";
4+
import { ArrowRightIcon } from "lucide-react";
55
import Link from "next/link";
66
import { usePathname } from "next/navigation";
77
import { useCallback, useState } from "react";
@@ -142,7 +142,8 @@ function CustomChatContentLoggedIn(props: {
142142
setChatAbortController(abortController);
143143
// --- Custom API call ---
144144
const payload: any = {
145-
message: messageToSend.content.find((x) => x.type === "text")?.text ?? "",
145+
message:
146+
messageToSend.content.find((x) => x.type === "text")?.text ?? "",
146147
authToken: props.authToken,
147148
conversationId: "25000000005",
148149
};
@@ -159,7 +160,7 @@ function CustomChatContentLoggedIn(props: {
159160
},
160161
body: JSON.stringify(payload),
161162
signal: abortController.signal,
162-
}
163+
},
163164
);
164165
const data = await response.json();
165166
// If the response contains a conversationId, set it as the sessionId for future messages
@@ -342,4 +343,4 @@ function EmptyStateChatPageContent(props: {
342343
</div>
343344
</div>
344345
);
345-
}
346+
}

0 commit comments

Comments
 (0)