mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 12:26:19 -05:00
Using localStorage to store navbar color and calculator values.
This commit is contained in:
parent
11dc370ed9
commit
b643728b96
7 changed files with 81 additions and 53 deletions
|
|
@ -13,7 +13,7 @@ export function TemperatureCalculator() {
|
|||
const handleInputChange = (e, {name, value}) => {
|
||||
if (value === '') {
|
||||
// User has cleared the input;
|
||||
setState({volt: '', ohm: '', amp: ''});
|
||||
setState({celsius: '', fahrenheit: '', kelvin: ''});
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue