Skip to content

Commit

Permalink
pdf filename depends on business contact title
Browse files Browse the repository at this point in the history
  • Loading branch information
tmanundercover committed Dec 19, 2023
1 parent 78915d8 commit 1a36296
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import PageContext from "../../../page-context/PageContext";
const useStyles = makeStyles((theme: Theme) => ({
endAdornedInput: {
"& .MuiFilledInput-adornedEnd": {
border: "1px solid red",
border: `1px solid ${theme.palette.primary.main}`,
// marginRight: '-12px',
borderTopRightRadius: theme.shape.borderRadius,
borderBottomRightRadius: theme.shape.borderRadius,
Expand Down Expand Up @@ -144,7 +144,7 @@ const BusinessCardSubmitEmail: FunctionComponent<SubmitEmailIProps> = (props: Su
{getHelperText()}
</Grid>
<Grid container item justifyContent='center'>
<PDFDownloadLink style={{color: theme.palette.primary.main}} fileName={'James Terrell Singleton - Software Engineer - Resume.pdf'} document={<ResumeDocumentPDF homePage={page.page} />}><Typography variant='subtitle1'>Download PDF</Typography> </PDFDownloadLink>
<PDFDownloadLink style={{color: theme.palette.primary.main}} fileName={`${page.page?.businessContact?.title}-Resume.pdf`} document={<ResumeDocumentPDF homePage={page.page} />}><Typography variant='subtitle1'>Download PDF</Typography> </PDFDownloadLink>
</Grid>
</Grid>)
}
Expand Down

0 comments on commit 1a36296

Please sign in to comment.