diff --git a/components/previews/AudioPreview.tsx b/components/previews/AudioPreview.tsx
index 07657bb..cefef1e 100644
--- a/components/previews/AudioPreview.tsx
+++ b/components/previews/AudioPreview.tsx
@@ -73,7 +73,8 @@ const AudioPreview: FunctionComponent<{ file: any }> = ({ file }) => {
-
+
+
>
diff --git a/components/previews/CodePreview.tsx b/components/previews/CodePreview.tsx
index a19605f..adb8666 100644
--- a/components/previews/CodePreview.tsx
+++ b/components/previews/CodePreview.tsx
@@ -32,16 +32,16 @@ const CodePreview: FunctionComponent<{ file: any }> = ({ file }) => {
}
return (
- <>
+
-
)
}
diff --git a/components/previews/EPUBPreview.tsx b/components/previews/EPUBPreview.tsx
index f7ae28c..f250bd6 100644
--- a/components/previews/EPUBPreview.tsx
+++ b/components/previews/EPUBPreview.tsx
@@ -32,7 +32,7 @@ const EPUBPreview: FunctionComponent<{file: any}> = ({ file }) => {
}
return (
- <>
+
-
)
}
diff --git a/components/previews/MarkdownPreview.tsx b/components/previews/MarkdownPreview.tsx
index e513478..8149fbc 100644
--- a/components/previews/MarkdownPreview.tsx
+++ b/components/previews/MarkdownPreview.tsx
@@ -81,7 +81,7 @@ const MarkdownPreview: FunctionComponent<{ file: any; path: string; standalone?:
}
return (
- <>
+
{standalone && (
-
)
}
diff --git a/components/previews/OfficePreview.tsx b/components/previews/OfficePreview.tsx
index 607d17a..c049e80 100644
--- a/components/previews/OfficePreview.tsx
+++ b/components/previews/OfficePreview.tsx
@@ -12,14 +12,18 @@ const OfficePreview: FunctionComponent<{ file: any }> = ({ file }) => {
}, [])
return (
- <>
+
-
)
}
diff --git a/components/previews/PDFPreview.tsx b/components/previews/PDFPreview.tsx
index bd0ce73..7a17fb7 100644
--- a/components/previews/PDFPreview.tsx
+++ b/components/previews/PDFPreview.tsx
@@ -9,14 +9,14 @@ const PDFEmbedPreview: FunctionComponent<{ file: any }> = ({ file }) => {
)}`
return (
- <>
-
+
+
-
)
}
diff --git a/components/previews/TextPreview.tsx b/components/previews/TextPreview.tsx
index 95022ce..c822f91 100644
--- a/components/previews/TextPreview.tsx
+++ b/components/previews/TextPreview.tsx
@@ -23,14 +23,14 @@ const TextPreview: FunctionComponent<{ file: any }> = ({ file }) => {
}
return (
- <>
+
-
)
}
diff --git a/components/previews/VideoPreview.tsx b/components/previews/VideoPreview.tsx
index c739e96..e3840f2 100644
--- a/components/previews/VideoPreview.tsx
+++ b/components/previews/VideoPreview.tsx
@@ -1,9 +1,7 @@
import { FunctionComponent } from 'react'
import ReactPlayer from 'react-player'
-import Image from 'next/image'
import { useRouter } from 'next/router'
import { useClipboard } from 'use-clipboard-copy'
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import toast, { Toaster } from 'react-hot-toast'
import { getBaseUrl } from '../../utils/getBaseUrl'