@@ -14,6 +14,7 @@ import { Input } from "./ui/input";
1414import { Label } from "./ui/label" ;
1515import { SnackbarProvider , enqueueSnackbar } from "notistack" ;
1616import { ChevronsRight } from "lucide-react" ;
17+ import { Textarea } from "./ui/textarea" ;
1718
1819const parseParam = ( param : any ) => {
1920 if ( ! param ) return param ;
@@ -178,28 +179,31 @@ export const Query = () => {
178179 </ div >
179180 { queryErrors [ item . identifier ] ||
180181 queryResults [ item . identifier ] ? (
181- < div >
182- < div className = "text-muted-foreground" >
183- [
184- < span className = "font-bold" >
185- { item . identifier } (
186- { item . args . map ( ( item ) => item . name ) . join ( ", " ) } )
187- </ span > { " " }
188- method Response ]{ " " }
189- < span className = "font-bold" >
190- { item . returnType ?. type }
191- </ span > { " " }
192- :
182+ < div className = "flex flex-col gap-1 bg-muted p-2 rounded-lg border" >
183+ < div className = "text-muted-foreground font-bold" >
184+ [{ item . identifier } (
185+ { item . args . map ( ( item ) => item . name ) . join ( ", " ) } ):{ " " }
186+ { item . returnType ?. type } ] :
193187 </ div >
194188 < div >
195189 { queryErrors [ item . identifier ] ? (
196190 < span className = "text-red-500" >
197191 Error: { queryErrors [ item . identifier ] }
198192 </ span >
199193 ) : queryResults [ item . identifier ] ? (
200- < div className = "flex items-center gap-1" >
201- < ChevronsRight className = "text-[#e5e5e5]" /> { " " }
202- { ( queryResults [ item . identifier ] as any ) . toHuman ( ) }
194+ < div className = "flex flex-col gap-1" >
195+ < div className = "flex items-center gap-1 font-bold" >
196+ result:{ " " }
197+ { (
198+ queryResults [ item . identifier ] as any
199+ ) . toJSON ( ) }
200+ </ div >
201+ < div className = "flex items-center gap-1 font-bold" >
202+ hex:{ " " }
203+ { (
204+ queryResults [ item . identifier ] as any
205+ ) . toHex ( ) }
206+ </ div >
203207 </ div >
204208 ) : (
205209 "No result yet"
0 commit comments