Allow rescheduleReason to be marked required (#7729)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-03-16 10:40:20 +05:30
1 parent 325dc9805f
commit 7179b09d7b
10 files changed
+233 -205

No files matched your search

@@ -16,6 +16,7 @@ export const BooleanToggleGroup = function BooleanToggleGroup({
disabled = false,
// eslint-disable-next-line @typescript-eslint/no-empty-function
onValueChange = () => {},
...passThrough
}: {
defaultValue?: boolean;
value?: boolean;
@@ -44,7 +45,8 @@ export const BooleanToggleGroup = function BooleanToggleGroup({
onValueChange={(yesNoValue: "yes" | "no") => {
setYesNoValue(yesNoValue);
onValueChange(boolean(yesNoValue));
}}>
}}
{...passThrough}>
<ToggleGroupItemPrimitive
className={classNames(boolean(yesNoValue) ? selectedClass : unselectedClass)}
disabled={disabled}