refactor: ponytail audit

This commit is contained in:
Amruth Pillai
2026-07-27 20:26:16 +02:00
parent bb1fb3a7d6
commit 9110e86997
157 changed files with 1082 additions and 2177 deletions
@@ -90,6 +90,7 @@ type ItemWebsite = {
type ItemTitleProps = {
children: ReactNode;
website: ItemWebsite;
bold?: boolean;
};
type ItemWebsiteLinkProps = {
@@ -383,9 +384,9 @@ const SectionItemHeader = ({ children }: SectionItemHeaderProps) => {
return <View style={composeStyles(sectionItemHeaderStyle)}>{children}</View>;
};
const ItemTitle = ({ children, website }: ItemTitleProps) => {
const ItemTitle = ({ children, website, bold = true }: ItemTitleProps) => {
const inlineWebsiteUrl = getInlineItemWebsiteUrl(website);
const title = <Bold>{children}</Bold>;
const title = bold ? <Bold>{children}</Bold> : <Text>{children}</Text>;
if (!inlineWebsiteUrl) return title;