@lysaab/lysa-pep 0.17.0 → 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 })),
|
|
@@ -39,14 +39,13 @@ export const PepStatusPage = ({ next }) => {
|
|
|
39
39
|
}, [pepContext]);
|
|
40
40
|
const labels = LABELS(pepContext.state.ownerName);
|
|
41
41
|
const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
|
|
42
|
-
console.log(labels[entityType].GENERIC.STATUS_COUNTRY_HEADER);
|
|
43
42
|
return (React.createElement("div", null,
|
|
44
43
|
React.createElement(Form, { lysaFormRef: formRef, onSubmit: () => {
|
|
45
44
|
nextPage();
|
|
46
45
|
} },
|
|
47
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")] }),
|
|
48
47
|
pepContext.state.isOngoing &&
|
|
49
|
-
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,
|
|
50
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")] }),
|
|
51
50
|
pepContext.state.isSweden && pepContext.state.isSweden === "other" ? (React.createElement(CountrySelect, { label: "V\u00E4lj i vilket land befattningen \u00E4r", onChange: event => pepContext.setState({
|
|
52
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"
|
|
@@ -71,7 +71,6 @@ export const PepStatusPage: FunctionComponent<Props> = ({ next }) => {
|
|
|
71
71
|
|
|
72
72
|
const labels = LABELS(pepContext.state.ownerName);
|
|
73
73
|
const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
|
|
74
|
-
console.log(labels[entityType].GENERIC.STATUS_COUNTRY_HEADER);
|
|
75
74
|
|
|
76
75
|
return (
|
|
77
76
|
<div>
|
|
@@ -99,7 +98,7 @@ export const PepStatusPage: FunctionComponent<Props> = ({ next }) => {
|
|
|
99
98
|
onChange={event =>
|
|
100
99
|
pepContext.setState({ ended: event || undefined })
|
|
101
100
|
}
|
|
102
|
-
validators={[RequiredValidator("Du måste ange
|
|
101
|
+
validators={[RequiredValidator("Du måste ange datum")]}
|
|
103
102
|
showMonthYearPicker
|
|
104
103
|
dateFormat="yyyy-MM"
|
|
105
104
|
maxDate={new Date()}
|