add headingLevel to ApiConnectorDetailBody
@@ -63,7 +63,8 @@ export interface IApiConnectorDetailBodyProps {
propertyKeys: string[];
}
-export const ApiConnectorDetailBody: React.FunctionComponent<IApiConnectorDetailBodyProps> = ({
+export const ApiConnectorDetailBody: React.FunctionComponent<IApiConnectorDetailBodyProps> =
+ ({
address,
basePath,
description,
@@ -84,9 +85,15 @@ export const ApiConnectorDetailBody: React.FunctionComponent<IApiConnectorDetail
name,
propertyKeys,
}) => {
- const [configured, setConfigured] = React.useState<IApiConnectorDetailValues>(
- { address, basePath, description, host, icon, name }
- );
+ const [configured, setConfigured] =
+ React.useState<IApiConnectorDetailValues>({
+ address,
+ basePath,
+ description,
+ host,
+ icon,
+ name,
+ });
const [isEditing, setIsEditing] = React.useState(false);
const onCancelEditing = () => {
@@ -111,7 +118,9 @@ export const ApiConnectorDetailBody: React.FunctionComponent<IApiConnectorDetail
<PageSection data-testid={'api-connector-detail-body'}>
<Card>
<CardHeader>
- <Title size={'2xl'}>{i18nTitle}</Title>
+ <Title size={'2xl'} headingLevel={'h2'}>
+ {i18nTitle}
+ </Title>
</CardHeader>
<CardBody>
{isEditing ? (
