diff --git a/frontend/web/components/SamlTab.tsx b/frontend/web/components/SamlTab.tsx index 2d29e228afd8..b3ce2f6113b1 100644 --- a/frontend/web/components/SamlTab.tsx +++ b/frontend/web/components/SamlTab.tsx @@ -13,7 +13,7 @@ import CreateSAML from './modals/CreateSAML' import Switch from './Switch' import { SAMLConfiguration } from 'common/types/responses' import PlanBasedBanner from './PlanBasedAccess' - + export type SamlTabType = { organisationId: number } @@ -36,119 +36,121 @@ const SamlTab: FC = ({ organisationId }) => { } return ( - - { - openCreateSAML('Create SAML configuration', organisationId) - }} - > - {'Create a SAML configuration'} - - } - /> - - - - samlConf.name.toLowerCase().indexOf(search) > -1 - } - header={ - - -
Configuration name
-
-
- Allow IdP-initiated -
-
- Action -
-
- } - items={data?.results || []} - renderRow={(samlConf: SAMLConfiguration) => ( - +
+ { - openCreateSAML( - 'Update SAML configuration', - organisationId, - samlConf.name, - ) + openCreateSAML('Create SAML configuration', organisationId) }} - space - className='list-item py-2 py-md-0 clickable cursor-pointer' - key={samlConf.name} > - -
{samlConf.name}
-
-
+ } + /> + + + + samlConf.name.toLowerCase().indexOf(search) > -1 + } + header={ + + +
Configuration name
+
+
+ Allow IdP-initiated +
+
+ Action +
+
+ } + items={data?.results || []} + renderRow={(samlConf: SAMLConfiguration) => ( + { + openCreateSAML( + 'Update SAML configuration', + organisationId, + samlConf.name, + ) + }} + space + className='list-item py-2 py-md-0 clickable cursor-pointer' + key={samlConf.name} > - -
-
- - -
-
, - ) - e.stopPropagation() - e.preventDefault() - }} - className='btn btn-with-icon' - > - - - -
- )} - /> -
+ }} + > + Cancel + + + + , + ) + e.stopPropagation() + e.preventDefault() + }} + className='btn btn-with-icon' + > + + + + + )} + /> + +
) }