Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ onChange
Function
onChange
packages/shared/src/components/fields/ToggleRadio.tsx:37–39 ·
view source on GitHub ↗
(newValue: T)
Source
from the content-addressed store, hash-verified
35
const selectedValue = value ?
'on'
:
'off'
;
36
37
const onChange = (newValue: T) => {
38
onToggle?.(newValue ===
'on'
);
39
};
40
41
return (
42
<Radio
Callers
nothing calls this directly
Calls
1
onToggle
Function · 0.50
Tested by
no test coverage detected