forked from syndesisio/syndesis-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiConnectorDetailCard.tsx
More file actions
38 lines (36 loc) · 1.06 KB
/
ApiConnectorDetailCard.tsx
File metadata and controls
38 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Text } from '@patternfly/react-core';
import { Card, CardBody } from 'patternfly-react';
import * as React from 'react';
import { toTestId } from '../../utils';
import './ApiConnectorDetailCard.css';
export interface IApiConnectorDetailCardProps {
description?: string;
icon?: string;
name: string;
}
export class ApiConnectorDetailCard extends React.Component<
IApiConnectorDetailCardProps
> {
public render() {
return (
<Card className="api-connector-card">
<CardBody>
<div className={'api-connector-card__content'}>
<div>
<img className="api-connector-card__icon" src={this.props.icon} />
</div>
<div
className="api-connector__title h2"
data-testid={`${toTestId('ApiConnectorDetailCard', 'title')}`}
>
{this.props.name}
</div>
<Text className="api-connector-card__description">
{this.props.description}
</Text>
</div>
</CardBody>
</Card>
);
}
}