@@ -95,14 +95,7 @@ const OrganizationMembersPage: FC = () => {
95
95
{ getMemberRoles ( member ) . map ( ( role ) => (
96
96
< Pill
97
97
key = { role . name }
98
- css = { {
99
- backgroundColor : role . global
100
- ? theme . roles . info . background
101
- : theme . roles . inactive . background ,
102
- borderColor : role . global
103
- ? theme . roles . info . outline
104
- : theme . roles . inactive . outline ,
105
- } }
98
+ css = { role . global ? styles . globalRole : styles . role }
106
99
>
107
100
{ role . global ? (
108
101
< Tooltip title = "This user has this role for all organizations." >
@@ -129,7 +122,7 @@ const OrganizationMembersPage: FC = () => {
129
122
void membersQuery . refetch ( ) ;
130
123
} }
131
124
>
132
- Delete …
125
+ Remove …
133
126
</ MoreMenuItem >
134
127
</ MoreMenuContent >
135
128
</ MoreMenu >
@@ -145,10 +138,7 @@ const OrganizationMembersPage: FC = () => {
145
138
} ;
146
139
147
140
function getMemberRoles ( member : OrganizationMemberWithUserData ) {
148
- const roles = new Map <
149
- string ,
150
- { name : string ; global ?: boolean ; tooltip ?: string }
151
- > ( ) ;
141
+ const roles = new Map < string , { name : string ; global ?: boolean } > ( ) ;
152
142
153
143
for ( const role of member . global_roles ) {
154
144
roles . set ( role . name , {
@@ -215,6 +205,14 @@ const AddGroupMember: FC<AddGroupMemberProps> = ({ isLoading, onSubmit }) => {
215
205
} ;
216
206
217
207
const styles = {
208
+ role : ( theme ) => ( {
209
+ backgroundColor : theme . roles . info . background ,
210
+ borderColor : theme . roles . info . outline ,
211
+ } ) ,
212
+ globalRole : ( theme ) => ( {
213
+ backgroundColor : theme . roles . inactive . background ,
214
+ borderColor : theme . roles . inactive . outline ,
215
+ } ) ,
218
216
autoComplete : {
219
217
width : 300 ,
220
218
} ,
0 commit comments