API report cleanup

Signed-off-by: manusant <ney.br.santos@gmail.com>
This commit is contained in:
manusant
2022-11-09 16:25:10 +00:00
parent af951b40aa
commit ece8c70bb2
5 changed files with 17 additions and 32 deletions
@@ -32,19 +32,16 @@ import { SonarQubeCard } from '../SonarQubeCard';
export type SonarQubeContentPageProps = {
title?: string;
supportTitle?: string;
} & React.ComponentPropsWithoutRef<'div'>;
};
/** @public */
export const SonarQubeContentPage = ({
title = 'SonarQube Dashboard',
supportTitle,
...otherProps
}: SonarQubeContentPageProps) => {
export const SonarQubeContentPage = (props: SonarQubeContentPageProps) => {
const { entity } = useEntity();
const { title, supportTitle } = props;
return isSonarQubeAvailable(entity) ? (
<Content {...otherProps}>
<ContentHeader title={title}>
<Content>
<ContentHeader title={title ?? 'SonarQube Dashboard'}>
{supportTitle && <SupportButton>{supportTitle}</SupportButton>}
</ContentHeader>
<SonarQubeCard />
+7 -1
View File
@@ -21,7 +21,13 @@
* @packageDocumentation
*/
export * from './components';
export type {
DuplicationRating,
SonarQubeContentPageProps,
SONARQUBE_PROJECT_KEY_ANNOTATION,
isSonarQubeAvailable,
} from './components';
export {
sonarQubePlugin,
sonarQubePlugin as plugin,