@lysaab/lysa-pep 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,6 @@ export const PepAnswers = ({ answer }) => {
|
|
|
24
24
|
answer.ended ? (React.createElement(React.Fragment, null,
|
|
25
25
|
React.createElement(StaticInput, { label: "Status", value: "Avslutad" }),
|
|
26
26
|
React.createElement(StaticInput, { label: "Avslutades", value: answer.ended }))) : (React.createElement(StaticInput, { label: "Status", value: "P\u00E5g\u00E5ende" })),
|
|
27
|
-
answer.birthdayOfPEP && (React.createElement(StaticInput, { label: "Roll", value: answer.birthdayOfPEP })),
|
|
28
27
|
answer.country && (React.createElement(StaticInput, { label: "Land", value: country ? country.label : answer.country })),
|
|
29
28
|
role && React.createElement(StaticInput, { label: "Roll", value: role.text }),
|
|
30
29
|
answer.ambassadorCountry && (React.createElement(StaticInput, { label: "Ambassad\u00F6rsland", value: answer.ambassadorCountry })),
|
|
@@ -45,7 +45,7 @@ export const PepStatusPage = ({ next }) => {
|
|
|
45
45
|
} },
|
|
46
46
|
React.createElement(RadioGroup, { alternatives: stateAlternatives, header: labels[entityType].GENERIC.STATUS_ONGOING_HEADER, onChange: updateIsOngoing, value: stateAlternatives.find(alt => alt.value === pepContext.state.isOngoing), validators: [RequiredValidator("Du måste välja ett alternativ")] }),
|
|
47
47
|
pepContext.state.isOngoing &&
|
|
48
|
-
pepContext.state.isOngoing === PepStatus.ENDED ? (React.createElement(Datepicker, { label: "N\u00E4r avslutades uppdraget?", selected: pepContext.state.ended, onChange: event => pepContext.setState({ ended: event || undefined }), validators: [RequiredValidator("Du måste ange
|
|
48
|
+
pepContext.state.isOngoing === PepStatus.ENDED ? (React.createElement(Datepicker, { label: "N\u00E4r avslutades uppdraget?", selected: pepContext.state.ended, onChange: event => pepContext.setState({ ended: event || undefined }), validators: [RequiredValidator("Du måste ange datum")], showMonthYearPicker: true, dateFormat: "yyyy-MM", maxDate: new Date() })) : null,
|
|
49
49
|
React.createElement(RadioGroup, { alternatives: isSwedenAlternatives, header: labels[entityType].GENERIC.STATUS_COUNTRY_HEADER, onChange: updateIsSweden, value: isSwedenAlternatives.find(alt => alt.value === pepContext.state.isSweden), validators: [RequiredValidator("Du måste välja ett alternativ")] }),
|
|
50
50
|
pepContext.state.isSweden && pepContext.state.isSweden === "other" ? (React.createElement(CountrySelect, { label: "V\u00E4lj i vilket land befattningen \u00E4r", onChange: event => pepContext.setState({
|
|
51
51
|
country: event.value ? event.value.toString() : undefined,
|
package/package.json
CHANGED
|
@@ -69,9 +69,6 @@ export const PepAnswers: FunctionComponent<Props> = ({ answer }) => {
|
|
|
69
69
|
) : (
|
|
70
70
|
<StaticInput label="Status" value="Pågående" />
|
|
71
71
|
)}
|
|
72
|
-
{answer.birthdayOfPEP && (
|
|
73
|
-
<StaticInput label="Roll" value={answer.birthdayOfPEP} />
|
|
74
|
-
)}
|
|
75
72
|
{answer.country && (
|
|
76
73
|
<StaticInput
|
|
77
74
|
label="Land"
|
|
@@ -98,7 +98,7 @@ export const PepStatusPage: FunctionComponent<Props> = ({ next }) => {
|
|
|
98
98
|
onChange={event =>
|
|
99
99
|
pepContext.setState({ ended: event || undefined })
|
|
100
100
|
}
|
|
101
|
-
validators={[RequiredValidator("Du måste ange
|
|
101
|
+
validators={[RequiredValidator("Du måste ange datum")]}
|
|
102
102
|
showMonthYearPicker
|
|
103
103
|
dateFormat="yyyy-MM"
|
|
104
104
|
maxDate={new Date()}
|