diff --git a/src/app/components/Resume/ResumePDF/ResumePDFCustom.tsx b/src/app/components/Resume/ResumePDF/ResumePDFCustom.tsx index fe8c2303..1436b64e 100644 --- a/src/app/components/Resume/ResumePDF/ResumePDFCustom.tsx +++ b/src/app/components/Resume/ResumePDF/ResumePDFCustom.tsx @@ -20,7 +20,7 @@ export const ResumePDFCustom = ({ const { descriptions } = custom; return ( - + { return ( - + {educations.map( ({ school, degree, date, gpa, descriptions = [] }, idx) => { // Hide school name if it is the same as the previous school diff --git a/src/app/components/Resume/ResumePDF/ResumePDFProject.tsx b/src/app/components/Resume/ResumePDF/ResumePDFProject.tsx index b7d8f46a..099df891 100644 --- a/src/app/components/Resume/ResumePDF/ResumePDFProject.tsx +++ b/src/app/components/Resume/ResumePDF/ResumePDFProject.tsx @@ -17,7 +17,7 @@ export const ResumePDFProject = ({ themeColor: string; }) => { return ( - + {projects.map(({ project, date, descriptions }, idx) => ( + {featuredSkillsWithText.length > 0 && ( {featuredSkillsPair.map((pair, idx) => ( diff --git a/src/app/components/Resume/ResumePDF/ResumePDFWorkExperience.tsx b/src/app/components/Resume/ResumePDF/ResumePDFWorkExperience.tsx index 0548dba1..694ee969 100644 --- a/src/app/components/Resume/ResumePDF/ResumePDFWorkExperience.tsx +++ b/src/app/components/Resume/ResumePDF/ResumePDFWorkExperience.tsx @@ -24,7 +24,7 @@ export const ResumePDFWorkExperience = ({ idx > 0 && company === workExperiences[idx - 1].company; return ( - + {!hideCompanyName && ( {company} )} diff --git a/src/app/components/Resume/ResumePDF/common/SuppressResumePDFErrorMessage.tsx b/src/app/components/Resume/ResumePDF/common/SuppressResumePDFErrorMessage.tsx index e0b7a95c..8e1c6d0e 100644 --- a/src/app/components/Resume/ResumePDF/common/SuppressResumePDFErrorMessage.tsx +++ b/src/app/components/Resume/ResumePDF/common/SuppressResumePDFErrorMessage.tsx @@ -8,7 +8,8 @@ if (typeof window !== "undefined" && window.location.hostname === "localhost") { const consoleError = console.error; const SUPPRESSED_WARNINGS = ["DOCUMENT", "PAGE", "TEXT", "VIEW"]; console.error = function filterWarnings(msg, ...args) { - if (!SUPPRESSED_WARNINGS.some((entry) => args[0]?.includes(entry))) { + const wrapFalse = Boolean(args[0] === "false" && args[1] === "wrap"); + if (!SUPPRESSED_WARNINGS.some((entry) => args[0]?.includes(entry)) && !wrapFalse) { consoleError(msg, ...args); } }; diff --git a/src/app/components/Resume/ResumePDF/common/index.tsx b/src/app/components/Resume/ResumePDF/common/index.tsx index 95e1ff4b..fafbccd7 100644 --- a/src/app/components/Resume/ResumePDF/common/index.tsx +++ b/src/app/components/Resume/ResumePDF/common/index.tsx @@ -9,13 +9,16 @@ export const ResumePDFSection = ({ heading, style = {}, children, + wrap, }: { themeColor?: string; heading?: string; style?: Style; children: React.ReactNode; + wrap?: boolean; }) => (