mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 15:22:20 +10:00
refactor: ponytail audit
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user