@@ -13,6 +13,7 @@ import type {
13
13
Group ,
14
14
GroupSyncSettings ,
15
15
Organization ,
16
+ Role ,
16
17
RoleSyncSettings ,
17
18
} from "api/typesGenerated" ;
18
19
import { ErrorAlert } from "components/Alert/ErrorAlert" ;
@@ -26,7 +27,6 @@ import {
26
27
HelpTooltipTrigger ,
27
28
} from "components/HelpTooltip/HelpTooltip" ;
28
29
import { Loader } from "components/Loader/Loader" ;
29
- import { Stack } from "components/Stack/Stack" ;
30
30
import { StatusIndicator } from "components/StatusIndicator/StatusIndicator" ;
31
31
import {
32
32
TableLoaderSkeleton ,
@@ -45,6 +45,7 @@ interface IdpSyncPageViewProps {
45
45
roleSyncSettings : RoleSyncSettings | undefined ;
46
46
groups : Group [ ] | undefined ;
47
47
groupsMap : Map < string , string > ;
48
+ roles : Role [ ] | undefined ;
48
49
organization : Organization ;
49
50
error ?: unknown ;
50
51
}
@@ -54,6 +55,7 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
54
55
roleSyncSettings,
55
56
groups,
56
57
groupsMap,
58
+ roles,
57
59
organization,
58
60
error,
59
61
} ) => {
@@ -85,7 +87,7 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
85
87
86
88
return (
87
89
< >
88
- < Stack spacing = { 2 } >
90
+ < div className = "gap-4" >
89
91
< Tabs active = { tab } >
90
92
< TabsList >
91
93
< TabLink to = "?tab=groups" value = "groups" >
@@ -99,7 +101,7 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
99
101
{ tab === "groups" ? (
100
102
< >
101
103
< div css = { styles . fields } >
102
- < Stack direction = "row" alignItems = " center" spacing = { 6 } >
104
+ < div className = "flex items- center gap-12" >
103
105
< IdpField
104
106
name = "Sync Field"
105
107
fieldText = { groupSyncSettings ?. field }
@@ -121,22 +123,17 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
121
123
: "n/a"
122
124
}
123
125
/>
124
- </ Stack >
126
+ </ div >
125
127
</ div >
126
- < Stack
127
- direction = "row"
128
- alignItems = "baseline"
129
- justifyContent = "space-between"
130
- css = { styles . tableInfo }
131
- >
128
+ < div className = "flex items-baseline justify-between mb-4" >
132
129
< TableRowCount count = { groupMappingCount } type = "groups" />
133
130
< ExportPolicyButton
134
131
syncSettings = { groupSyncSettings }
135
132
organization = { organization }
136
133
type = "groups"
137
134
/>
138
- </ Stack >
139
- < Stack spacing = { 6 } >
135
+ </ div >
136
+ < div className = "flex gap-12" >
140
137
< IdpMappingTable type = "Group" isEmpty = { groupMappingCount === 0 } >
141
138
{ groupSyncSettings ?. mapping &&
142
139
Object . entries ( groupSyncSettings . mapping )
@@ -168,7 +165,7 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
168
165
</ IdpMappingTable >
169
166
</ section >
170
167
) }
171
- </ Stack >
168
+ </ div >
172
169
</ >
173
170
) : (
174
171
< >
@@ -179,19 +176,15 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
179
176
showDisabled
180
177
/>
181
178
</ div >
182
- < Stack
183
- direction = "row"
184
- alignItems = "baseline"
185
- justifyContent = "space-between"
186
- css = { styles . tableInfo }
187
- >
179
+ < div
180
+ className = "flex items-baseline justify-between mb-4" >
188
181
< TableRowCount count = { roleMappingCount } type = "roles" />
189
182
< ExportPolicyButton
190
183
syncSettings = { roleSyncSettings }
191
184
organization = { organization }
192
185
type = "roles"
193
186
/>
194
- </ Stack >
187
+ </ div >
195
188
< IdpMappingTable type = "Role" isEmpty = { roleMappingCount === 0 } >
196
189
{ roleSyncSettings ?. mapping &&
197
190
Object . entries ( roleSyncSettings . mapping )
@@ -206,7 +199,7 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({
206
199
</ IdpMappingTable >
207
200
</ >
208
201
) }
209
- </ Stack >
202
+ </ div >
210
203
</ >
211
204
) ;
212
205
} ;
@@ -389,7 +382,7 @@ const LegacyGroupSyncHeader: FC = () => {
389
382
fontWeight : 500 ,
390
383
} }
391
384
>
392
- < Stack direction = "row" alignItems = " end" spacing = { 1 } >
385
+ < div className = "flex items- end gap-2" >
393
386
< span > Legacy Group Sync Settings</ span >
394
387
< HelpTooltip >
395
388
< HelpTooltipTrigger />
@@ -407,7 +400,7 @@ const LegacyGroupSyncHeader: FC = () => {
407
400
</ HelpTooltipText >
408
401
</ HelpTooltipContent >
409
402
</ HelpTooltip >
410
- </ Stack >
403
+ </ div >
411
404
</ h4 >
412
405
) ;
413
406
} ;
0 commit comments