From 787cec4ca05e3b0247dd8e136addf057ca1a5d47 Mon Sep 17 00:00:00 2001 From: mguinhos Date: Fri, 18 Aug 2023 03:10:19 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20bot=C3=B5es=20que=20n=C3=A3o=20estava?= =?UTF-8?q?m=20funcionando=20e=20com=20rotulo=20errado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 6e45911..3795386 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -51,8 +51,8 @@ function Calculator({ ...props }: any) { inputRef.current.value = '0'}>C - - sqrt(x) + inputRef.current.value = `sqrt(${inputRef.current.value})`}>sqrt + inputRef.current.value = `${inputRef.current.value}^`}>^ inputRef.current.value = math.evaluate(inputRef.current.value)}>=