MCPcopy Create free account
hub / github.com/coder/coder / commit

Function commit

site/src/components/DateRangePicker/DateRangePicker.tsx:136–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 );
135
136 const commit = () => {
137 if (selection?.from && selection?.to) {
138 onChange(toBoundary(selection.from, selection.to, now ?? new Date()));
139 }
140 setOpen(false);
141 };
142
143 const handlePreset = (preset: DateRangePreset) => {
144 const { from, to } = preset.range();

Callers

nothing calls this directly

Calls 1

toBoundaryFunction · 0.85

Tested by

no test coverage detected