Allow rescheduleReason to be marked required (#7729)
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user