File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
app/nebula-app/(app)/chat/history Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments