Skip to content

Commit

Permalink
Remove okta row click handler (not fully implemented)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlisa authored and github-actions committed Sep 3, 2024
1 parent b9b3893 commit c8b58f9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions web/packages/teleport/src/Integrations/IntegrationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import React from 'react';
import styled from 'styled-components';
import { useHistory } from 'react-router';
import { Link as InternalRouteLink } from 'react-router-dom';

import { Box, Flex, Image } from 'design';
Expand Down Expand Up @@ -66,27 +65,11 @@ type Props<IntegrationLike> = {
type IntegrationLike = Integration | Plugin | ExternalAuditStorageIntegration;

export function IntegrationList(props: Props<IntegrationLike>) {
const history = useHistory();

function handleRowClick(row: IntegrationLike) {
if (row.kind !== 'okta') return;
history.push(cfg.getIntegrationStatusRoute(row.kind, row.name));
}

function getRowStyle(row: IntegrationLike): React.CSSProperties {
if (row.kind !== 'okta') return;
return { cursor: 'pointer' };
}

return (
<Table
pagination={{ pageSize: 20 }}
isSearchable
data={props.list}
row={{
onClick: handleRowClick,
getStyle: getRowStyle,
}}
columns={[
{
key: 'resourceType',
Expand Down

0 comments on commit c8b58f9

Please sign in to comment.