@@ -17,10 +17,11 @@ export default {
17
17
} ;
18
18
19
19
export const Display = {
20
- render : ( { loginAsYourselfOptions, loginAsGemachtigdeOptions} ) => (
20
+ render : ( { loginAsYourselfOptions, loginAsGemachtigdeOptions, cosignLoginOptions } ) => (
21
21
< LoginOptionsDisplay
22
22
loginAsYourselfOptions = { loginAsYourselfOptions }
23
23
loginAsGemachtigdeOptions = { loginAsGemachtigdeOptions }
24
+ cosignLoginOptions = { cosignLoginOptions }
24
25
/>
25
26
) ,
26
27
args : {
@@ -76,18 +77,26 @@ export const Display = {
76
77
url : '#' ,
77
78
} ,
78
79
] ,
80
+ cosignLoginOptions : [
81
+ {
82
+ identifier : 'digid' ,
83
+ label : 'DigiD' ,
84
+ logo : {
85
+ appearance : 'dark' ,
86
+ href : 'https://www.digid.nl/' ,
87
+ title : 'DigiD' ,
88
+ imageSrc : './digid.png' ,
89
+ } ,
90
+ url : '#' ,
91
+ } ,
92
+ ] ,
79
93
} ,
80
94
} ;
81
95
82
- const render = ( {
83
- loginRequired = false ,
84
- loginOptions = [ ] ,
85
- cosignLoginInfo = undefined ,
86
- onFormStart,
87
- } ) =>
96
+ const render = ( { loginRequired = false , loginOptions = [ ] , cosignLoginOptions = [ ] , onFormStart} ) =>
88
97
console . log ( onFormStart ) || (
89
98
< LoginOptions
90
- form = { buildForm ( { loginRequired, loginOptions, cosignLoginInfo } ) }
99
+ form = { buildForm ( { loginRequired, loginOptions, cosignLoginOptions } ) }
91
100
onFormStart = { onFormStart }
92
101
/>
93
102
) ;
@@ -214,17 +223,19 @@ export const WithCoSignOption = {
214
223
isForGemachtigde : false ,
215
224
} ,
216
225
] ,
217
- cosignLoginInfo : {
218
- identifier : 'digid' ,
219
- label : 'DigiD' ,
220
- url : '#' ,
221
- logo : {
222
- title : 'DigiD simulatie' ,
223
- imageSrc : './digid.png' ,
224
- href : 'https://www.digid.nl/' ,
225
- appearance : 'dark' ,
226
+ cosignLoginOptions : [
227
+ {
228
+ identifier : 'digid' ,
229
+ label : 'DigiD' ,
230
+ url : '#' ,
231
+ logo : {
232
+ title : 'DigiD simulatie' ,
233
+ imageSrc : './digid.png' ,
234
+ href : 'https://www.digid.nl/' ,
235
+ appearance : 'dark' ,
236
+ } ,
237
+ isForGemachtigde : false ,
226
238
} ,
227
- isForGemachtigde : false ,
228
- } ,
239
+ ] ,
229
240
} ,
230
241
} ;
0 commit comments