(e)
| 23 | }, [value]) |
| 24 | |
| 25 | const handleChange = (e) => { |
| 26 | const newValue = e.target.value // "YYYY-MM-DD" or "" |
| 27 | setDateValue(newValue) |
| 28 | // Propagate as ISO string (end-of-day UTC) so backend can parse it as a Date |
| 29 | onChange(newValue ? new Date(newValue).toISOString() : '') |
| 30 | } |
| 31 | |
| 32 | return ( |
| 33 | <Box className={isDark ? 'picker-dark' : ''} sx={{ mt: 1, width: '100%' }}> |
nothing calls this directly
no test coverage detected