11import { useMemo } from 'react' ;
22import { View } from 'react-native' ;
33
4- import { A , Caption , H6 , useLayout } from '~/common/styleguide' ;
4+ import { A , Caption , H6Section , useLayout } from '~/common/styleguide' ;
55import ContentContainer from '~/components/ContentContainer' ;
66import { DirectoryScore } from '~/components/Library/DirectoryScore' ;
77import DetailsNavigation from '~/components/Package/DetailsNavigation' ;
@@ -42,7 +42,7 @@ export default function PackageScoreScene({ apiData, packageName }: PackageScore
4242 isSmallScreen && tw `flex-col px-5` ,
4343 ] } >
4444 < View style = { tw `items-center` } >
45- < H6 style = { tw `mb-3` } > Directory score</ H6 >
45+ < H6Section style = { tw `mb-3` } > Directory score</ H6Section >
4646 < DirectoryScore score = { library . score } sizeMultiplier = { 2 } />
4747 < span style = { tw `mt-1 flex items-center text-[24px] font-semibold text-primary-dark` } >
4848 { library . score } /100
@@ -67,7 +67,7 @@ export default function PackageScoreScene({ apiData, packageName }: PackageScore
6767 </ Caption >
6868 </ View >
6969 </ View >
70- < H6 style = { tw `text-secondary` } > Matching criteria</ H6 >
70+ < H6Section style = { tw `text-secondary` } > Matching criteria</ H6Section >
7171 < View >
7272 { SCORING_CRITERIONS . filter ( ( { name } ) =>
7373 library . matchingScoreModifiers . includes ( name )
@@ -77,7 +77,7 @@ export default function PackageScoreScene({ apiData, packageName }: PackageScore
7777 </ ScoringCriterion >
7878 ) ) }
7979 </ View >
80- < H6 style = { tw `text-secondary` } > Not matched criteria</ H6 >
80+ < H6Section style = { tw `text-secondary` } > Not matched criteria</ H6Section >
8181 < View >
8282 { SCORING_CRITERIONS . filter (
8383 ( { name } ) => ! library . matchingScoreModifiers . includes ( name )
0 commit comments