diff --git a/src/components/Projects/Cell.tsx b/src/components/Projects/Cell.tsx index da06de66f..75d318077 100644 --- a/src/components/Projects/Cell.tsx +++ b/src/components/Projects/Cell.tsx @@ -1,7 +1,7 @@ import dayjs from 'dayjs'; import React from 'react'; import { IProject } from '../../data/projects'; -import PdfViewer from './Pdf'; +import PdfViewer from './PdfViewer'; export interface ICell { data: IProject; @@ -32,7 +32,7 @@ const Cell: React.FC = ({ data }) => ( ) : (
)} - {data.pdf ? PdfViewer(data.pdf) :
} + {data.pdf ? :
}

{data.desc}

diff --git a/src/components/Projects/Pdf.tsx b/src/components/Projects/Pdf.tsx deleted file mode 100644 index bcc075049..000000000 --- a/src/components/Projects/Pdf.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { Viewer, Worker } from '@react-pdf-viewer/core'; -import '@react-pdf-viewer/core/lib/styles/index.css'; -import React from 'react'; - -const PdfViewer = (path: string) => { - return ( -
- - - -
- ); -}; - -export default PdfViewer; diff --git a/src/components/Projects/PdfViewer.tsx b/src/components/Projects/PdfViewer.tsx new file mode 100644 index 000000000..e48a0e162 --- /dev/null +++ b/src/components/Projects/PdfViewer.tsx @@ -0,0 +1,17 @@ +import { Viewer, Worker } from '@react-pdf-viewer/core'; +import '@react-pdf-viewer/core/lib/styles/index.css'; +import React from 'react'; + +export interface IPdf { + path: string; +} + +const PdfViewer: React.FC = ({ path }) => ( +
+ + ; + +
+); + +export default PdfViewer; diff --git a/src/components/Template/Hamburger.tsx b/src/components/Template/Hamburger.tsx index 7545dd29e..6eacec5e9 100644 --- a/src/components/Template/Hamburger.tsx +++ b/src/components/Template/Hamburger.tsx @@ -32,7 +32,9 @@ const Hamburger = () => { {routes.map((l) => (
  • setOpen(!open)}> -

    {l.label}

    +

    + {l.label} +

  • ))}