From b9c38e811e24946da9356b440a7fdf878f35bc36 Mon Sep 17 00:00:00 2001 From: mfrances Date: Tue, 1 Jun 2021 16:09:16 -0400 Subject: [PATCH] fix lint issues --- src/components/role-mapping/AddRoleMappingModal.tsx | 8 ++++---- src/components/table-toolbar/KeycloakDataTable.tsx | 2 +- .../ldap/mappers/LdapMapperHardcodedLdapRole.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/role-mapping/AddRoleMappingModal.tsx b/src/components/role-mapping/AddRoleMappingModal.tsx index 29ba386726..5385a5e4ba 100644 --- a/src/components/role-mapping/AddRoleMappingModal.tsx +++ b/src/components/role-mapping/AddRoleMappingModal.tsx @@ -81,17 +81,17 @@ export const AddRoleMappingModal = ({ client: client.id!, } ); - } - // MF 052021 TODOs: + } + // MF 052021 TODOs: // change if/elses to switches // add a type for user-federation that pulls in all roles // make id optional - + // adminClient.roles.find // roles = await adminClient.clients.listRoles( // { - // + // // id: client.id! // } diff --git a/src/components/table-toolbar/KeycloakDataTable.tsx b/src/components/table-toolbar/KeycloakDataTable.tsx index d0612f93a3..a447d2416e 100644 --- a/src/components/table-toolbar/KeycloakDataTable.tsx +++ b/src/components/table-toolbar/KeycloakDataTable.tsx @@ -85,7 +85,7 @@ function DataTable({ ? (_, rowIndex, isOpen) => onCollapse(isOpen, rowIndex) : undefined } - selectVariant={isRadio ? 'radio' : 'checkbox'} + selectVariant={isRadio ? "radio" : "checkbox"} canSelectAll={canSelectAll} cells={columns.map((column) => { return { ...column, title: t(column.displayKey || column.name) }; diff --git a/src/user-federation/ldap/mappers/LdapMapperHardcodedLdapRole.tsx b/src/user-federation/ldap/mappers/LdapMapperHardcodedLdapRole.tsx index 44d1787779..61bff491c4 100644 --- a/src/user-federation/ldap/mappers/LdapMapperHardcodedLdapRole.tsx +++ b/src/user-federation/ldap/mappers/LdapMapperHardcodedLdapRole.tsx @@ -45,7 +45,7 @@ export const LdapMapperHardcodedLdapRole = ({ {showAssign && ( // MF 042921 hardcoded for now, to see modal displayed marks-client-scope + id="1a85c63a-99bd-4d16-9924-b38b8f7cceaf" // this is the ID for client-scopes > marks-client-scope type="client-scope" name="name" // id={id}