Skip to content

Commit a5819f8

Browse files
committed
1 parent 2650602 commit a5819f8

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

src/components/LoginOptions/LoginOptions.stories.js

+11
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ export const Display = {
8989
},
9090
url: '#',
9191
},
92+
{
93+
identifier: 'eHerkenning',
94+
label: 'eHerkenning',
95+
logo: {
96+
appearance: 'light',
97+
href: 'https://www.eherkenning.nl/',
98+
title: 'eHerkenning',
99+
imageSrc: './eherkenning.png',
100+
},
101+
url: '#',
102+
},
92103
],
93104
},
94105
};

src/components/LoginOptions/LoginOptionsDisplay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const LoginOptionsDisplay = ({
3636
</>
3737
)}
3838

39-
{cosignLoginOptions && cosignLoginOptions.length > 0 && (
39+
{cosignLoginOptions?.length > 0 && (
4040
<div className={getBEMClassName('login-options__cosign')}>
4141
<h2 className={getBEMClassName('login-options__caption')}>
4242
<FormattedMessage

src/components/LoginOptions/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import LoginOptionsDisplay from './LoginOptionsDisplay';
1212
const LoginOptions = ({form, onFormStart}) => {
1313
const config = useContext(ConfigContext);
1414

15-
let loginAsYourselfOptions = [];
16-
let loginAsGemachtigdeOptions = [];
17-
let cosignLoginOptions = [];
15+
const loginAsYourselfOptions = [];
16+
const loginAsGemachtigdeOptions = [];
17+
const cosignLoginOptions = [];
1818

1919
form.loginOptions.forEach(option => {
2020
let readyOption = {...option};

src/types/FormattedLoginOption.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const FormattedLoginOption = PropTypes.shape({
88
title: PropTypes.string.isRequired,
99
imageSrc: PropTypes.string.isRequired,
1010
href: PropTypes.string,
11+
appearance: PropTypes.bool,
1112
}),
1213
isForGemachtigde: PropTypes.bool,
1314
});

0 commit comments

Comments
 (0)