File tree Expand file tree Collapse file tree 1 file changed +16
-33
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +16
-33
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
-
3
1
import ErrorModal from './ErrorModal' ;
4
2
5
3
export default {
6
4
title : 'IDE/ErrorModal' ,
7
5
component : ErrorModal ,
8
6
argTypes : {
9
- type : {
10
- options : [
11
- 'forceAuthentication' ,
12
- 'staleSession' ,
13
- 'staleProject' ,
14
- 'oauthError'
15
- ] ,
16
- control : { type : 'select' }
17
- } ,
18
- service : {
19
- options : [ 'google' , 'github' ] ,
20
- control : { type : 'select' }
21
- } ,
22
7
closeModal : { action : 'closed' }
23
8
}
24
9
} ;
25
10
26
- const Template = ( args ) => < ErrorModal { ...args } /> ;
27
-
28
- export const ForceAuthenticationErrorModal = Template . bind ( { } ) ;
29
- ForceAuthenticationErrorModal . args = {
30
- type : 'forceAuthentication'
11
+ export const ForceAuthenticationErrorModal = {
12
+ args : {
13
+ type : 'forceAuthentication'
14
+ }
31
15
} ;
32
-
33
- export const StaleSessionErrorModal = Template . bind ( { } ) ;
34
- StaleSessionErrorModal . args = {
35
- type : 'staleSession'
16
+ export const StaleSessionErrorModal = {
17
+ args : {
18
+ type : 'staleSession'
19
+ }
36
20
} ;
37
-
38
- export const StaleProjectErrorModal = Template . bind ( { } ) ;
39
- StaleProjectErrorModal . args = {
40
- type : 'staleProject'
21
+ export const StaleProjectErrorModal = {
22
+ args : {
23
+ type : 'staleProject'
24
+ }
41
25
} ;
42
-
43
- export const OauthErrorModal = Template . bind ( { } ) ;
44
- OauthErrorModal . args = {
45
- type : 'oauthError' ,
46
- service : 'google'
26
+ export const OauthErrorModal = {
27
+ args : {
28
+ type : 'oauthError'
29
+ }
47
30
} ;
You can’t perform that action at this time.
0 commit comments