MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / handleDateSelect

Function handleDateSelect

apps/start/src/components/ui/date-time.tsx:19–23  ·  view source on GitHub ↗
(date: Date | undefined)

Source from the content-addressed store, hash-verified

17 onChange,
18}: { value: Date; onChange: (date: Date) => void }) {
19 function handleDateSelect(date: Date | undefined) {
20 if (date) {
21 onChange(date);
22 }
23 }
24
25 function handleTimeChange(type: 'hour' | 'minute', value: string) {
26 const currentDate = value || new Date();

Callers

nothing calls this directly

Calls 1

onChangeFunction · 0.85

Tested by

no test coverage detected