From 166d700b044c1ec6099872d2088c413fe94981cc Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 23 Feb 2024 23:36:20 +0100 Subject: [PATCH] ErrorCard refactor --- .../src/app/components/CompileErrorCard.tsx | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/apps/vyper/src/app/components/CompileErrorCard.tsx b/apps/vyper/src/app/components/CompileErrorCard.tsx index 4c8d1128b8..08ba821a1b 100644 --- a/apps/vyper/src/app/components/CompileErrorCard.tsx +++ b/apps/vyper/src/app/components/CompileErrorCard.tsx @@ -1,12 +1,19 @@ +import {CopyToClipboard} from '@remix-ui/clipboard' import Reaact from 'react' export function CompileErrorCard(props: any) { return ( -
- +
{props.output.message.trim()} +
+
+ props.askGpt(props.output.message)}> + Ask GPT + + + + +
+
) }