File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import clsx from 'clsx' ;
1+ import isInternalUrl from '@docusaurus/isInternalUrl' ;
32import Link from '@docusaurus/Link' ;
43import { useDocById , findFirstSidebarItemLink } from '@docusaurus/plugin-content-docs/client' ;
54import { usePluralForm } from '@docusaurus/theme-common' ;
6- import isInternalUrl from '@docusaurus/isInternalUrl' ;
75import { translate } from '@docusaurus/Translate' ;
86import Heading from '@theme/Heading' ;
7+ import clsx from 'clsx' ;
8+ import React from 'react' ;
9+
910import styles from './styles.module.css' ;
1011
1112function useCategoryItemsPlural ( ) {
1213 const { selectMessage } = usePluralForm ( ) ;
13- return ( count ) =>
14- selectMessage (
15- count ,
16- translate (
17- {
18- message : '1 item|{count} items' ,
19- id : 'theme.docs.DocCard.categoryDescription.plurals' ,
20- description :
14+ return ( count ) => selectMessage (
15+ count ,
16+ translate (
17+ {
18+ message : '1 item|{count} items' ,
19+ id : 'theme.docs.DocCard.categoryDescription.plurals' ,
20+ description :
2121 'The default description for a category card in the generated index about how many items this category includes' ,
22- } ,
23- { count } ,
24- ) ,
25- ) ;
22+ } ,
23+ { count } ,
24+ ) ,
25+ ) ;
2626}
2727
2828function CardContainer ( { href, children } ) {
You can’t perform that action at this time.
0 commit comments