+
+ {/* Completion window (hours) */}
+ Completion window (hours)
+
+
+ {"Set a time window that task can't be completed before"}
+
+
+ {
+ event.preventDefault()
+ if (completionWindow != -1) {
+ setCompletionWindow(-1)
+ } else {
+ setCompletionWindow(1)
+ }
+ }}
+ color={completionWindow !== -1 ? 'success' : 'neutral'}
+ variant={completionWindow !== -1 ? 'solid' : 'outlined'}
+ // endDecorator={points !== -1 ? 'On' : 'Off'}
+ slotProps={{
+ endDecorator: {
+ sx: {
+ minWidth: 24,
+ },
+ },
+ }}
+ />
+
+ {completionWindow != -1 && (
+