@@ -20,6 +20,7 @@ import {
20
20
TableRowSkeleton ,
21
21
} from "components/TableLoader/TableLoader" ;
22
22
import type { FC } from "react" ;
23
+ import { MONOSPACE_FONT_FAMILY } from "theme/constants" ;
23
24
import { docs } from "utils/docs" ;
24
25
25
26
export type IdpSyncPageViewProps = {
@@ -85,18 +86,16 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({ oidcConfig }) => {
85
86
Object . entries ( oidcConfig ?. user_role_mapping ) . length === 0 ,
86
87
) }
87
88
>
88
- < >
89
- { oidcConfig ?. user_role_mapping &&
90
- Object . entries ( oidcConfig . user_role_mapping )
91
- . sort ( )
92
- . map ( ( [ idpRole , roles ] ) => (
93
- < RoleRow
94
- key = { idpRole }
95
- idpRole = { idpRole }
96
- coderRoles = { roles }
97
- />
98
- ) ) }
99
- </ >
89
+ { oidcConfig ?. user_role_mapping &&
90
+ Object . entries ( oidcConfig . user_role_mapping )
91
+ . sort ( )
92
+ . map ( ( [ idpRole , roles ] ) => (
93
+ < RoleRow
94
+ key = { idpRole }
95
+ idpRole = { idpRole }
96
+ coderRoles = { roles }
97
+ />
98
+ ) ) }
100
99
</ IdpMappingTable >
101
100
< IdpMappingTable
102
101
type = "Group"
@@ -105,18 +104,16 @@ export const IdpSyncPageView: FC<IdpSyncPageViewProps> = ({ oidcConfig }) => {
105
104
Object . entries ( oidcConfig ?. group_mapping ) . length === 0 ,
106
105
) }
107
106
>
108
- < >
109
- { oidcConfig ?. user_role_mapping &&
110
- Object . entries ( oidcConfig . group_mapping )
111
- . sort ( )
112
- . map ( ( [ idpGroup , group ] ) => (
113
- < GroupRow
114
- key = { idpGroup }
115
- idpGroup = { idpGroup }
116
- coderGroup = { group }
117
- />
118
- ) ) }
119
- </ >
107
+ { oidcConfig ?. user_role_mapping &&
108
+ Object . entries ( oidcConfig . group_mapping )
109
+ . sort ( )
110
+ . map ( ( [ idpGroup , group ] ) => (
111
+ < GroupRow
112
+ key = { idpGroup }
113
+ idpGroup = { idpGroup }
114
+ coderGroup = { group }
115
+ />
116
+ ) ) }
120
117
</ IdpMappingTable >
121
118
</ Stack >
122
119
</ Cond >
@@ -139,7 +136,7 @@ const IdpField: FC<IdpFieldProps> = ({
139
136
return (
140
137
< span css = { { display : "flex" , alignItems : "center" , gap : "16px" } } >
141
138
< h4 > { name } </ h4 >
142
- < p css = { styles . secondary } >
139
+ < p css = { styles . field } >
143
140
{ fieldText ||
144
141
( showStatusIndicator && (
145
142
< div
@@ -225,7 +222,7 @@ const GroupRow: FC<GroupRowProps> = ({ idpGroup, coderGroup }) => {
225
222
return (
226
223
< TableRow data-testid = { `group-${ idpGroup } ` } >
227
224
< TableCell > { idpGroup } </ TableCell >
228
- < TableCell css = { styles . secondary } > { coderGroup } </ TableCell >
225
+ < TableCell > { coderGroup } </ TableCell >
229
226
</ TableRow >
230
227
) ;
231
228
} ;
@@ -239,7 +236,7 @@ const RoleRow: FC<RoleRowProps> = ({ idpRole, coderRoles }) => {
239
236
return (
240
237
< TableRow data-testid = { `role-${ idpRole } ` } >
241
238
< TableCell > { idpRole } </ TableCell >
242
- < TableCell css = { styles . secondary } > coderRoles Placeholder</ TableCell >
239
+ < TableCell > coderRoles Placeholder</ TableCell >
243
240
</ TableRow >
244
241
) ;
245
242
} ;
@@ -263,8 +260,9 @@ const TableLoader = () => {
263
260
} ;
264
261
265
262
const styles = {
266
- secondary : ( theme ) => ( {
263
+ field : ( theme ) => ( {
267
264
color : theme . palette . text . secondary ,
265
+ fontFamily : MONOSPACE_FONT_FAMILY ,
268
266
} ) ,
269
267
fields : ( ) => ( {
270
268
marginBottom : "60px" ,
0 commit comments