MCPcopy Create free account
hub / github.com/denniskigen/react-weather / handleChange

Function handleChange

src/components/units-toggle.jsx:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 };
13
14 const handleChange = () => {
15 onUnitsChange(units.match(/metric/i) ? 'imperial' : 'metric');
16 setIsMetric(!isMetric);
17 toggleSettingsMenu();
18 };
19
20 return (
21 <div className="w-full m-auto mt-4 md:w-3/5 lg:w-1/2">

Callers

nothing calls this directly

Calls 1

toggleSettingsMenuFunction · 0.85

Tested by

no test coverage detected