File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
apps/dashboard/src/@/components/contracts/functions Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import { Badge } from "@/components/ui/badge";
3030import { Button } from "@/components/ui/button" ;
3131import { CodeClient } from "@/components/ui/code/code.client" ;
3232import { PlainTextCodeBlock } from "@/components/ui/code/plaintext-code" ;
33- import { InlineCode } from "@/components/ui/inline-code" ;
3433import { Input } from "@/components/ui/input" ;
3534import { Spinner } from "@/components/ui/Spinner/Spinner" ;
3635import { Skeleton } from "@/components/ui/skeleton" ;
@@ -414,14 +413,13 @@ export const InteractiveAbiFunction: React.FC<InteractiveAbiFunctionProps> = (
414413 ) }
415414
416415 { error ? (
417- < >
418- < h3 className = "text-sm font-medium" > Error</ h3 >
419- < InlineCode
420- className = "relative w-full whitespace-pre-wrap rounded-md border border-border p-4 text-red-500"
421- // biome-ignore lint/suspicious/noExplicitAny: FIXME
422- code = { formatError ( error as any ) }
416+ < div >
417+ < h3 className = "text-sm font-medium mb-2" > Error</ h3 >
418+ < PlainTextCodeBlock
419+ className = "text-red-500 bg-background"
420+ code = { formatError ( error ) }
423421 />
424- </ >
422+ </ div >
425423 ) : readLoading ? (
426424 < Skeleton className = "h-20 w-full rounded-lg" />
427425 ) : formattedResponseData ? (
You can’t perform that action at this time.
0 commit comments