File tree Expand file tree Collapse file tree 3 files changed +26
-31
lines changed
tasks/TaskChooseOrganization Expand file tree Collapse file tree 3 files changed +26
-31
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function SessionTasksRoutes(): JSX.Element {
51
51
const ctx = useSessionTasksContext ( ) ;
52
52
53
53
return (
54
- < Flow . Root flow = 'tasks ' >
54
+ < Flow . Root flow = 'sessionTasks ' >
55
55
< Switch >
56
56
< Route path = { INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ 'choose-organization' ] } >
57
57
< TaskChooseOrganizationContext . Provider
Original file line number Diff line number Diff line change @@ -33,31 +33,29 @@ const TaskChooseOrganizationInternal = () => {
33
33
const identifier = user ?. primaryEmailAddress ?. emailAddress ?? user ?. username ;
34
34
35
35
return (
36
- < Flow . Root flow = 'taskChooseOrganization' >
36
+ < Flow . Part part = 'taskChooseOrganization' >
37
37
< Card . Root >
38
- < Flow . Part part = { hasExistingResources ? 'chooseOrganization' : 'createOrganization' } >
39
- < Card . Content sx = { t => ( { padding : `${ t . space . $8 } ${ t . space . $none } ${ t . space . $none } ` , gap : t . space . $7 } ) } >
40
- { isLoading ? (
41
- < Flex
42
- direction = { 'row' }
43
- align = { 'center' }
44
- justify = { 'center' }
45
- sx = { t => ( {
46
- height : '100%' ,
47
- minHeight : t . sizes . $100 ,
48
- } ) }
49
- >
50
- < Spinner
51
- size = { 'lg' }
52
- colorScheme = { 'primary' }
53
- elementDescriptor = { descriptors . spinner }
54
- />
55
- </ Flex >
56
- ) : (
57
- < TaskChooseOrganizationFlows initialFlow = { hasExistingResources ? 'choose' : 'create' } />
58
- ) }
59
- </ Card . Content >
60
- </ Flow . Part >
38
+ < Card . Content sx = { t => ( { padding : `${ t . space . $8 } ${ t . space . $none } ${ t . space . $none } ` , gap : t . space . $7 } ) } >
39
+ { isLoading ? (
40
+ < Flex
41
+ direction = { 'row' }
42
+ align = { 'center' }
43
+ justify = { 'center' }
44
+ sx = { t => ( {
45
+ height : '100%' ,
46
+ minHeight : t . sizes . $100 ,
47
+ } ) }
48
+ >
49
+ < Spinner
50
+ size = { 'lg' }
51
+ colorScheme = { 'primary' }
52
+ elementDescriptor = { descriptors . spinner }
53
+ />
54
+ </ Flex >
55
+ ) : (
56
+ < TaskChooseOrganizationFlows initialFlow = { hasExistingResources ? 'choose' : 'create' } />
57
+ ) }
58
+ </ Card . Content >
61
59
62
60
< Card . Footer >
63
61
< Card . Action
@@ -82,7 +80,7 @@ const TaskChooseOrganizationInternal = () => {
82
80
</ Card . Action >
83
81
</ Card . Footer >
84
82
</ Card . Root >
85
- </ Flow . Root >
83
+ </ Flow . Part >
86
84
) ;
87
85
} ;
88
86
Original file line number Diff line number Diff line change @@ -100,9 +100,7 @@ export type FlowMetadata = {
100
100
| 'apiKeys'
101
101
| 'oauthConsent'
102
102
| 'subscriptionDetails'
103
- | 'subscriptionDetails'
104
- | 'tasks'
105
- | 'taskChooseOrganization' ;
103
+ | 'sessionTasks' ;
106
104
part ?:
107
105
| 'start'
108
106
| 'emailCode'
@@ -124,8 +122,7 @@ export type FlowMetadata = {
124
122
| 'popover'
125
123
| 'complete'
126
124
| 'accountSwitcher'
127
- | 'chooseOrganization'
128
- | 'createOrganization' ;
125
+ | 'taskChooseOrganization' ;
129
126
} ;
130
127
131
128
const [ FlowMetadataCtx , useFlowMetadata ] = createContextAndHook < FlowMetadata > ( 'FlowMetadata' ) ;
You can’t perform that action at this time.
0 commit comments