Skip to content

Commit fc332c1

Browse files
authored
Merge branch 'main' into yash/fix-custom-factory-publish-form
2 parents 6cd1673 + cb66be4 commit fc332c1

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

apps/dashboard/src/app/nebula-app/(app)/chat/history/ChatHistoryPage.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,14 @@ function SessionCard(props: {
175175
});
176176

177177
return (
178-
<div className="overflow-hidden rounded-lg border bg-muted/50 p-4">
178+
<div className="relative overflow-hidden rounded-lg border bg-muted/50 p-4">
179179
<h3 className="line-clamp-3 break-all">
180-
{props.session.title || "Untitled"}
180+
<Link
181+
className="before:absolute before:inset-0"
182+
href={`/chat/${props.session.id}`}
183+
>
184+
{props.session.title || "Untitled"}
185+
</Link>
181186
</h3>
182187
<div className="mt-4 flex items-center justify-between gap-6 border-t pt-3">
183188
<p className="text-muted-foreground text-sm">
@@ -189,7 +194,10 @@ function SessionCard(props: {
189194

190195
<Popover>
191196
<PopoverTrigger asChild>
192-
<Button className="h-auto w-auto p-1.5" variant="ghost">
197+
<Button
198+
className="relative z-10 h-auto w-auto p-1.5"
199+
variant="ghost"
200+
>
193201
<EllipsisIcon className="size-4 text-muted-foreground" />
194202
</Button>
195203
</PopoverTrigger>

apps/dashboard/src/hooks/useCsvUpload.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ export function useCsvUpload<
134134
const { getRootProps, getInputProps, isDragActive } = useDropzone({
135135
onDrop,
136136
});
137+
137138
const normalizeQuery = useQueries({
138-
queries: rawData.map((o) => ({
139-
queryKey: ["snapshot-check-isAddress", o.address],
140-
queryFn: () => checkIsAddress({ item: o, thirdwebClient }),
139+
queries: rawData.map((item) => ({
140+
queryKey: ["snapshot-check-isAddress", item],
141+
queryFn: () => checkIsAddress({ item: item, thirdwebClient }),
141142
})),
142143
combine: (results) => {
143144
return {
@@ -149,6 +150,7 @@ export function useCsvUpload<
149150
};
150151
},
151152
});
153+
152154
const removeInvalid = useCallback(() => {
153155
const filteredData = normalizeQuery.data?.result.filter(
154156
({ isValid }) => isValid,

0 commit comments

Comments
 (0)