diff --git a/src/components/templates/transform-hw/pages/BusinessCardSubmitEmail.tsx b/src/components/templates/transform-hw/pages/BusinessCardSubmitEmail.tsx index bf638e30..a947fe16 100644 --- a/src/components/templates/transform-hw/pages/BusinessCardSubmitEmail.tsx +++ b/src/components/templates/transform-hw/pages/BusinessCardSubmitEmail.tsx @@ -1,4 +1,4 @@ -import React, {ChangeEvent, FunctionComponent, useState} from 'react' +import React, {ChangeEvent, FunctionComponent, useContext, useState} from 'react' import {Theme} from "@mui/material/styles"; import makeStyles from '@mui/styles/makeStyles'; import {Grid, TextField, Typography, useTheme} from '@mui/material' @@ -7,6 +7,9 @@ import {ButtonGroupMemberEnum} from "../../../loading-button/ButtonGroupMemberEn import isEmail from "validator/lib/isEmail"; import leadClient from "./under-construction-page/leadClient"; import useCustomStyles from "../../mackenzies-mind/pages/Styles"; +import ResumeDocumentPDF from "../../../pdf-renderer/ResumeDocumentPDF"; +import {PDFDownloadLink} from "@react-pdf/renderer"; +import PageContext from "../../../page-context/PageContext"; const useStyles = makeStyles((theme: Theme) => ({ endAdornedInput: { @@ -46,6 +49,7 @@ const BusinessCardSubmitEmail: FunctionComponent = (props: Su const theme = useTheme() const classes = useCustomStyles({}) const myClasses = useStyles() + const page = useContext(PageContext) const [email, setEmail] = useState("") const [isLoading, setIsLoading] = React.useState(false) @@ -138,7 +142,11 @@ const BusinessCardSubmitEmail: FunctionComponent = (props: Su {getHelperText()} - ) + + + }>Download PDF + + ) } export default BusinessCardSubmitEmail \ No newline at end of file