diff --git a/src/core_modules/capture-core/components/Widget/widgetCollapsible.types.js b/src/core_modules/capture-core/components/Widget/widgetCollapsible.types.js index 3f182d8f8e..6392f0fc94 100644 --- a/src/core_modules/capture-core/components/Widget/widgetCollapsible.types.js +++ b/src/core_modules/capture-core/components/Widget/widgetCollapsible.types.js @@ -2,7 +2,7 @@ import type { Node } from 'react'; export type WidgetCollapsibleProps = {| - header: Node, + header?: Node, children: Node, open: boolean, onOpen: () => void, diff --git a/src/core_modules/capture-core/components/Widget/widgetNonCollapsible.types.js b/src/core_modules/capture-core/components/Widget/widgetNonCollapsible.types.js index 3af55c409b..4e1e8e4f3d 100644 --- a/src/core_modules/capture-core/components/Widget/widgetNonCollapsible.types.js +++ b/src/core_modules/capture-core/components/Widget/widgetNonCollapsible.types.js @@ -2,7 +2,7 @@ import type { Node } from 'react'; export type WidgetNonCollapsibleProps = {| - header: Node, + header?: Node, children: Node, color?: string, borderless?: boolean, diff --git a/src/core_modules/capture-core/components/WidgetEventSchedule/ScheduleDate/ScheduleDate.component.js b/src/core_modules/capture-core/components/WidgetEventSchedule/ScheduleDate/ScheduleDate.component.js index d775ecae20..9f8c790587 100644 --- a/src/core_modules/capture-core/components/WidgetEventSchedule/ScheduleDate/ScheduleDate.component.js +++ b/src/core_modules/capture-core/components/WidgetEventSchedule/ScheduleDate/ScheduleDate.component.js @@ -17,7 +17,7 @@ import { InfoBox } from '../InfoBox'; import { baseInputStyles } from '../ScheduleOrgUnit/commonProps'; -const ScheduleDataField = withDefaultFieldContainer()( +const ScheduleDateField = withDefaultFieldContainer()( withLabel({ onGetCustomFieldLabeClass: () => labelTypeClasses.dateLabel, })( @@ -57,7 +57,7 @@ const ScheduleDatePlain = ({ }: Props) => (
{!hideDueDate ? - - } >
void, + setScheduledOrgUnit: (orgUnit: ?{ + id: string, + name: string, + path: string, + }) => void, setIsFormValid: (valid: boolean) => void, serverSuggestedScheduleDate?: ?string, eventCountInOrgUnit: number,