mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-19 21:11:45 +10:00
@@ -78,9 +78,9 @@ function sectionHeading(title: string, colorHex: string): Paragraph {
|
||||
});
|
||||
}
|
||||
|
||||
function titleAndSubtitle(primary: string, secondary: string, rightText?: string): Paragraph {
|
||||
function titleAndSubtitle(primary: string, secondary: string, rightText?: string, bold = true): Paragraph {
|
||||
const baseRun = getBaseRun();
|
||||
const children: (TextRun | ExternalHyperlink)[] = [new TextRun({ text: primary, bold: true, ...baseRun })];
|
||||
const children: (TextRun | ExternalHyperlink)[] = [new TextRun({ text: primary, bold, ...baseRun })];
|
||||
|
||||
if (secondary) {
|
||||
children.push(new TextRun({ text: ` — ${secondary}`, ...baseRun }));
|
||||
@@ -321,7 +321,7 @@ function renderAwards(section: Sections["awards"], colorHex: string): Paragraph[
|
||||
const paragraphs: Paragraph[] = [sectionHeading(section.title, colorHex)];
|
||||
|
||||
for (const item of items) {
|
||||
paragraphs.push(titleAndSubtitle(item.title, item.awarder, item.date));
|
||||
paragraphs.push(titleAndSubtitle(item.title, item.awarder, item.date, false));
|
||||
|
||||
if (item.description) {
|
||||
paragraphs.push(...htmlToParagraphs(item.description, getHtmlStyle()));
|
||||
|
||||
@@ -749,7 +749,7 @@ const AwardsSection = ({ sectionId = "awards", sectionData }: ItemSectionProps<A
|
||||
<SectionItem key={item.id}>
|
||||
<SectionItemHeader>
|
||||
<View style={composeStyles(splitRowStyle, awardTitleDateRowStyle)}>
|
||||
<ItemTitle website={item.website}>{item.title}</ItemTitle>
|
||||
<ItemTitle website={item.website} bold={false}>{item.title}</ItemTitle>
|
||||
<Text style={composeStyles(alignEndStyle)}>{item.date}</Text>
|
||||
</View>
|
||||
<Text>{item.awarder}</Text>
|
||||
|
||||
Reference in New Issue
Block a user