diff --git a/components/DownloadBtnGtoup.tsx b/components/DownloadBtnGtoup.tsx index 9c13c43..34c3192 100644 --- a/components/DownloadBtnGtoup.tsx +++ b/components/DownloadBtnGtoup.tsx @@ -1,7 +1,7 @@ import { MouseEventHandler } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { IconProp } from '@fortawesome/fontawesome-svg-core' -import toast, { Toaster } from 'react-hot-toast' +import toast from 'react-hot-toast' import { useClipboard } from 'use-clipboard-copy' import Image from 'next/image' @@ -62,8 +62,6 @@ const DownloadButtonGroup: React.FC<{ downloadUrl: string }> = ({ downloadUrl }) return (
- - window.open(downloadUrl)} btnColor="blue" diff --git a/components/previews/VideoPreview.tsx b/components/previews/VideoPreview.tsx index e3840f2..c959b5f 100644 --- a/components/previews/VideoPreview.tsx +++ b/components/previews/VideoPreview.tsx @@ -2,7 +2,7 @@ import { FunctionComponent } from 'react' import ReactPlayer from 'react-player' import { useRouter } from 'next/router' import { useClipboard } from 'use-clipboard-copy' -import toast, { Toaster } from 'react-hot-toast' +import toast from 'react-hot-toast' import { getBaseUrl } from '../../utils/getBaseUrl' import { DownloadButton } from '../DownloadBtnGtoup' @@ -25,8 +25,6 @@ const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
- - window.open(file['@microsoft.graph.downloadUrl'])} btnColor="blue"