Function
getAccountTypeLabel
(accountType: AccountType)
Source from the content-addressed store, hash-verified
| 213 | }; |
| 214 | |
| 215 | const getAccountTypeLabel = (accountType: AccountType) => { |
| 216 | switch (accountType) { |
| 217 | case AccountType.SERVICE_ACCOUNT: |
| 218 | return t("settings.members.service-account"); |
| 219 | case AccountType.WORKLOAD_IDENTITY: |
| 220 | return t("settings.members.workload-identity"); |
| 221 | default: |
| 222 | return ""; |
| 223 | } |
| 224 | }; |
| 225 | |
| 226 | if (users.length === 0) { |
| 227 | return ( |
Tested by
no test coverage detected