Kerilet / calculadora-bombastica

https://kerilet.github.io/calculadora-bombastica/
0 stars 0 forks source link

Button doesnt have a "disabled" prop for when there is no information #7

Closed Kerilet closed 2 years ago

Kerilet commented 2 years ago

Design

Kerilet commented 2 years ago

Fui tentar consertar esse issue, porém apareceu um erro que eu nunca vi antes.

Código (App.js)

Código (Reset/index.jsx)

Erro (browser)

jesse1983 commented 2 years ago

Let me help you about this feature:

The first thing you need know is: when the reset button must be disabled?

A answer is simple: when Total is equal zero, right?

Then, if Reset button reads this information, it can be enabled or disabled!

It's clear for you?

Kerilet commented 2 years ago

I finally resolved this issue, but while doing so the reset function stopped working...