Skip to content

Commit

Permalink
Corrige botões que não estavam funcionando e com rotulo errado
Browse files Browse the repository at this point in the history
  • Loading branch information
mguinhos committed Aug 18, 2023
1 parent 539f829 commit 787cec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ function Calculator({ ...props }: any) {
<CalculatorBox>
<CalculatorRow>
<CalculatorButton onClick={() => inputRef.current.value = '0'}>C</CalculatorButton>
<CalculatorButton></CalculatorButton>
<CalculatorButton>sqrt(x)</CalculatorButton>
<CalculatorButton onClick={() => inputRef.current.value = `sqrt(${inputRef.current.value})`}>sqrt</CalculatorButton>
<CalculatorButton onClick={() => inputRef.current.value = `${inputRef.current.value}^`}>^</CalculatorButton>
<CalculatorButton onClick={() => inputRef.current.value = math.evaluate(inputRef.current.value)}>=</CalculatorButton>
</CalculatorRow>
<CalculatorRow>
Expand Down

0 comments on commit 787cec4

Please sign in to comment.