Skip to content

Commit 879c612

Browse files
authored
Removed component count (#259)
The A11y and PO reviews will only take place after all other DoD steps have been completed by the Developer: - [x] Meaningful pull request title for the release notes - [x] Pull request is linked to an issue and all changes relate to the issue - [x] Tests to protect this code implemented (if applicable) - [x] Manual test performed successfully (if applicable) - [x] Documentation or migration has been updated (if applicable)
2 parents 8a83391 + cc9367e commit 879c612

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/docs/ComponentList.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FC } from 'react';
22
import React, { Suspense, useEffect, useState, useRef, useCallback } from 'react';
33
import { useDocsPreferredVersion } from '@docusaurus/theme-common';
44
import Link from '@docusaurus/Link';
5-
import { KolBadge, KolCard, KolHeading } from '@public-ui/react';
5+
import { KolBadge, KolCard } from '@public-ui/react';
66

77
import type { Language, Locale } from '../../shares/language';
88
import type { Version } from '../../shares/version';
@@ -78,8 +78,6 @@ export const ComponentList: FC<Props> = ({ lang }) => {
7878
const docVersion = useDocsPreferredVersion();
7979
const version = docVersion?.preferredVersion?.name as Version;
8080
const components = COMPONENT_VERSIONS?.[version ?? 'current'];
81-
const componentLength = components.length;
82-
const headline = lang === 'de' ? `Anzahl Komponenten: ${componentLength}` : `Components sum: ${componentLength}`;
8381
const observer = useCallback(
8482
(cb: () => void) =>
8583
new IntersectionObserver((entries) => {
@@ -94,9 +92,6 @@ export const ComponentList: FC<Props> = ({ lang }) => {
9492
if (components?.length <= 0) return null;
9593
return (
9694
<>
97-
<KolHeading _label={headline} _level={3}>
98-
{headline}
99-
</KolHeading>
10095
<div className="components-overview">
10196
{components.map(({ name, loadComponent }) => (
10297
<LazyLoadComponent

0 commit comments

Comments
 (0)