Skip to content

Commit

Permalink
Update interactive-abi-function.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kien-ngo committed Oct 1, 2024
1 parent 7119a6d commit bfc9db6
Showing 1 changed file with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client";

import { InlineCode } from "@/components/ui/inline-code";
import { ToolTipLabel } from "@/components/ui/tooltip";
import {
ButtonGroup,
Code,
Divider,
Flex,
FormControl,
Expand Down Expand Up @@ -408,21 +408,11 @@ export const InteractiveAbiFunction: React.FC<InteractiveAbiFunctionProps> = ({
<>
<Divider />
<Heading size="label.sm">Error</Heading>
<Text
borderColor="borderColor"
as={Code}
p={4}
w="full"
bgColor="backgroundHighlight"
borderRadius="md"
color="red.500"
whiteSpace="pre-wrap"
borderWidth="1px"
position="relative"
>
{/* biome-ignore lint/suspicious/noExplicitAny: FIXME */}
{formatError(error as any)}
</Text>
<InlineCode
// biome-ignore lint/suspicious/noExplicitAny: FIXME
code={formatError(error as any)}
className="relative w-full whitespace-pre-wrap rounded-md border border-border p-4 text-red-500"
/>
</>
) : formattedResponseData ? (
<>
Expand Down

0 comments on commit bfc9db6

Please sign in to comment.