Skip to content

Commit

Permalink
fix: review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv committed Jan 9, 2025
1 parent d790496 commit 45c9652
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { Node } from 'react';

export type WidgetCollapsibleProps = {|
header: Node,
header?: Node,
children: Node,
open: boolean,
onOpen: () => void,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { Node } from 'react';

export type WidgetNonCollapsibleProps = {|
header: Node,
header?: Node,
children: Node,
color?: string,
borderless?: boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { InfoBox } from '../InfoBox';
import { baseInputStyles } from '../ScheduleOrgUnit/commonProps';


const ScheduleDataField = withDefaultFieldContainer()(
const ScheduleDateField = withDefaultFieldContainer()(
withLabel({
onGetCustomFieldLabeClass: () => labelTypeClasses.dateLabel,
})(
Expand Down Expand Up @@ -57,7 +57,7 @@ const ScheduleDatePlain = ({
}: Props) => (
<div className={classes.fieldWrapper}>
{!hideDueDate ?
<ScheduleDataField
<ScheduleDateField
label={i18n.t('Schedule date / Due date')}
required
value={scheduleDate}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.dateLabel {
padding-top: 13px;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.dateLabel {
padding-top: 13px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ const WidgetEventSchedulePlain = ({
<Widget
noncollapsible
borderless
header={
<></>
}
>
<div className={classes.wrapper}>
<DataSection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const WidgetEventSchedule = ({
onCancel={onCancel}
setScheduleDate={setScheduleDate}
setScheduledOrgUnit={setScheduledOrgUnit}
setIsFormValid={setIsFormValid} // Viktig å beholde
setIsFormValid={setIsFormValid}
onSchedule={onHandleSchedule}
onAddNote={onAddNote}
eventCountInOrgUnit={eventCountInOrgUnit}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export type Props = {|
scheduleDate?: ?string,
serverScheduleDate?: ?string,
suggestedScheduleDate?: ?string,
setScheduledOrgUnit: (orgUnit: Object) => void,
setScheduledOrgUnit: (orgUnit: ?{
id: string,
name: string,
path: string,
}) => void,
setIsFormValid: (valid: boolean) => void,
serverSuggestedScheduleDate?: ?string,
eventCountInOrgUnit: number,
Expand Down

0 comments on commit 45c9652

Please sign in to comment.