@mychoice/mychoice-sdk-modules 2.1.45 → 2.1.46
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.
- package/dist/cjs/index.js +9 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -2961,13 +2961,17 @@ const SectionCoverage = () => {
|
|
|
2961
2961
|
});
|
|
2962
2962
|
};
|
|
2963
2963
|
const newLifeOptions = React.useMemo(() => {
|
|
2964
|
-
// Use different
|
|
2965
|
-
if (province === '9') {
|
|
2966
|
-
return
|
|
2964
|
+
// Use different set for Ontario
|
|
2965
|
+
if (isMychoice && province === '9') {
|
|
2966
|
+
return {
|
|
2967
|
+
groupOptions: mychoiceSdkComponents.lifeInsuranceOntarioTypeOptions,
|
|
2968
|
+
};
|
|
2967
2969
|
}
|
|
2968
|
-
return
|
|
2970
|
+
return {
|
|
2971
|
+
options: mychoiceSdkComponents.lifeInsuranceTypeOptions.filter((option) => option.name.includes('Year Level')),
|
|
2972
|
+
};
|
|
2969
2973
|
}, [isMychoice, province]);
|
|
2970
|
-
return (jsxRuntime.jsxs("div", { className: "form-section", children: [jsxRuntime.jsx("h2", { className: "section-title", style: { textAlign: 'center' }, children: "Get the coverage you need" }), jsxRuntime.jsx(SelectFormBox, { options: isMychoice ? mychoiceSdkComponents.lifeProvinceOptionsMC : mychoiceSdkComponents.lifeProvinceOptions, name: "province", onChange: handleProvinceChange, defaultValue: province, title: "Province", placeholder: "Select", autoSelectIfValueIsOutOfOptions: false, error: !province && inValidation, errorMessage: getErrorMessage(type, inValidation) }), jsxRuntime.jsx(SelectFormBox, {
|
|
2974
|
+
return (jsxRuntime.jsxs("div", { className: "form-section", children: [jsxRuntime.jsx("h2", { className: "section-title", style: { textAlign: 'center' }, children: "Get the coverage you need" }), jsxRuntime.jsx(SelectFormBox, { options: isMychoice ? mychoiceSdkComponents.lifeProvinceOptionsMC : mychoiceSdkComponents.lifeProvinceOptions, name: "province", onChange: handleProvinceChange, defaultValue: province, title: "Province", placeholder: "Select", autoSelectIfValueIsOutOfOptions: false, error: !province && inValidation, errorMessage: getErrorMessage(type, inValidation) }), jsxRuntime.jsx(SelectFormBox, { ...newLifeOptions, name: "type", onChange: handleLifeInsuranceTypeChange, defaultValue: type, title: "Type of Insurance", description: jsxRuntime.jsx(Description, {}), placeholder: "Select", autoSelectIfValueIsOutOfOptions: false, error: !type && inValidation, errorMessage: getErrorMessage(type, inValidation) }), jsxRuntime.jsx(SelectFormBox, { options: mychoiceSdkComponents.lifeCoverageOptions, name: "coverage", onChange: handleCoverageChange, defaultValue: coverage, title: "Required coverage", description: "The extent of coverage you need is determined by several factors,\n including your expenditure patterns, anticipated future expenses, yearly earnings,\n and so forth. Generally, individuals opt for a coverage amount that equals five\n times their current annual income before taxes. On an average,\n it is observed that Canadians choose a coverage amount of around $500,000.", placeholder: "Select", autoSelectIfValueIsOutOfOptions: false, error: !coverage && inValidation, errorMessage: getErrorMessage(coverage, inValidation) })] }));
|
|
2971
2975
|
};
|
|
2972
2976
|
|
|
2973
2977
|
const PageCoverage = () => {
|