Skip to content

Commit c8740fd

Browse files
committed
Reverterer endringer ifm finalform, som krasjet avdelingslederbildet for gamle køer
1 parent 379420e commit c8740fd

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

src/client/app/form/finalFields/CheckboxField.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,9 @@ const CheckboxField: FunctionComponent<OwnProps> = ({ name, label, validate, rea
4848
/>
4949
);
5050

51+
CheckboxField.defaultProps = {
52+
validate: null,
53+
readOnly: false,
54+
};
5155

5256
export default CheckboxField;

src/client/app/form/finalFields/DatepickerField.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,12 @@ const DatepickerField: FunctionComponent<OwnProps> = ({
7676
/>
7777
);
7878

79+
DatepickerField.defaultProps = {
80+
label: '',
81+
readOnly: false,
82+
isEdited: false,
83+
format: (value) => value,
84+
parse: (value) => value,
85+
};
86+
7987
export default DatepickerField;

src/client/app/form/finalFields/RadioOption.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ export const RadioOption: FunctionComponent<OwnProps> = ({
5454
);
5555
};
5656

57+
RadioOption.defaultProps = {
58+
name: '',
59+
className: '',
60+
disabled: false,
61+
groupDisabled: false,
62+
onChange: () => undefined,
63+
manualHideChildren: false,
64+
};
65+
5766
RadioOption.displayName = 'RadioOption';
5867

5968
export default RadioOption;

src/client/app/form/finalFields/ReadOnlyField.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ export const ReadOnlyField: FunctionComponent<OwnProps> = ({ label, input, isEdi
3232
);
3333
};
3434

35+
ReadOnlyField.defaultProps = {
36+
label: undefined,
37+
isEdited: false,
38+
};
3539

3640
export default ReadOnlyField;

src/client/app/form/finalFields/TextAreaField.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ const TextAreaWithBadge: FunctionComponent<TextAreaWithBadgeProps & WrappedCompo
4444
</div>
4545
);
4646

47+
TextAreaWithBadge.defaultProps = {
48+
badges: null,
49+
};
4750

4851
const renderNavTextArea = renderNavField(injectIntl(TextAreaWithBadge));
4952

0 commit comments

Comments
 (0)