MCPcopy Index your code
hub / github.com/simstudioai/sim / goToToday

Function goToToday

packages/emcn/src/components/calendar/calendar.tsx:302–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300 const selectDay = (day: number) => onChange?.(toDateString(view.year, view.month, day))
301
302 const goToToday = () => {
303 setView({ month: today.getMonth(), year: today.getFullYear() })
304 onChange?.(toDateString(today.getFullYear(), today.getMonth(), today.getDate()))
305 }
306
307 return (
308 <div className={cn('flex w-[256px] flex-col p-2', className)}>

Callers

nothing calls this directly

Calls 1

toDateStringFunction · 0.85

Tested by

no test coverage detected