fix all type errors

This commit is contained in:
Thomas Ruoff
2021-02-15 23:29:25 +01:00
parent 85a7b54a13
commit 3386fb3928
14 changed files with 123 additions and 132 deletions

View File

@@ -1,14 +1,7 @@
import React from 'react'
import { IPdfProps } from '../interfaces/IPdfProps'
export default function Preview({
pdfIsLoading,
pdfError,
pdfUrl,
}: {
pdfIsLoading: boolean
pdfError: string
pdfUrl: string
}) {
export default function Preview({ pdfIsLoading, pdfError, pdfUrl }: IPdfProps) {
if (pdfIsLoading) {
return <div>Lade&hellip;</div>
}