From 92281fb403463607827cb2010c9736d1e034eb64 Mon Sep 17 00:00:00 2001 From: Rob Ellison Date: Mon, 15 May 2023 22:46:56 +0000 Subject: [PATCH] fix: add missing imports --- pages/output/[...parms].jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/output/[...parms].jsx b/pages/output/[...parms].jsx index 869efea6..2e517ea9 100644 --- a/pages/output/[...parms].jsx +++ b/pages/output/[...parms].jsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useCallback } from 'react' +import React, { useState, useEffect, useLayoutEffect, useCallback, useRef } from 'react' import { VFile } from 'vfile' import { VFileMessage } from 'vfile-message' import * as provider from '@mdx-js/react' @@ -19,7 +19,8 @@ import { theme } from '../../constants/theme'; import { ThemeProvider } from '@mui/material/styles'; import CssBaseline from '@mui/material/CssBaseline'; import { mdComponents } from "../../components/MDXProvider"; -import { MDXProvider } from '@mdx-js/react' + +import { Previewer } from 'pagedjs' function removeSection(pad, tagName) { const re = new RegExp("<" + tagName + "\\s+[^>]*>(.*?)", "gs"); @@ -67,7 +68,7 @@ function useMdx(defaults) { message.fatal = true } - + console.log('output:evalutate:Success: ', file) setState({ ...config, file }) }, { leading: true, trailing: true, wait: 500 } @@ -192,8 +193,8 @@ function Page() { if (format === 'pdf') { - {/* {state.file && state.file.result ? : null} */} - + {state.file && state.file.result ? : null} + {/* */} } else { if (state.file && state.file.result) { console.log('output:state.file.result: ', state.file.result) }