import types explicitly

This commit is contained in:
spencerwooo
2022-02-02 16:41:30 +08:00
parent dfbcbeda5b
commit 89dcc1f614
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ import DefaultPreview from './previews/DefaultPreview'
import { DownloadBtnContainer, PreviewContainer } from './previews/Containers' import { DownloadBtnContainer, PreviewContainer } from './previews/Containers'
import DownloadButtonGroup from './DownloadBtnGtoup' import DownloadButtonGroup from './DownloadBtnGtoup'
import { OdFileObject, OdFolderObject } from '../types' import type { OdFileObject, OdFolderObject } from '../types'
// Disabling SSR for some previews (image gallery view, and PDF view) // Disabling SSR for some previews (image gallery view, and PDF view)
const ReactViewer = dynamic(() => import('react-viewer'), { ssr: false }) const ReactViewer = dynamic(() => import('react-viewer'), { ssr: false })
+1 -1
View File
@@ -9,7 +9,7 @@ import Link from 'next/link'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { Dialog, Transition } from '@headlessui/react' import { Dialog, Transition } from '@headlessui/react'
import { OdDriveItem, OdSearchResult } from '../types' import type { OdDriveItem, OdSearchResult } from '../types'
import { LoadingIcon } from './Loading' import { LoadingIcon } from './Loading'
import { getFileIcon } from '../utils/getFileIcon' import { getFileIcon } from '../utils/getFileIcon'
+1 -1
View File
@@ -1,4 +1,4 @@
import { OdFileObject } from '../../types' import type { OdFileObject } from '../../types'
import { FC, useState } from 'react' import { FC, useState } from 'react'
import ReactPlayer from 'react-player' import ReactPlayer from 'react-player'
+1 -1
View File
@@ -1,4 +1,4 @@
import { OdFileObject } from '../../types' import type { OdFileObject } from '../../types'
import { FC } from 'react' import { FC } from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
+1 -1
View File
@@ -1,4 +1,4 @@
import { OdFileObject } from '../../types' import type { OdFileObject } from '../../types'
import { FC, useEffect, useRef, useState } from 'react' import { FC, useEffect, useRef, useState } from 'react'
import { ReactReader } from 'react-reader' import { ReactReader } from 'react-reader'
+1 -1
View File
@@ -1,4 +1,4 @@
import { OdFileObject } from '../../types' import type { OdFileObject } from '../../types'
import { FC, useEffect, useRef, useState } from 'react' import { FC, useEffect, useRef, useState } from 'react'
import Preview from 'preview-office-docs' import Preview from 'preview-office-docs'
+1 -1
View File
@@ -1,4 +1,4 @@
import { OdFileObject } from '../../types' import type { OdFileObject } from '../../types'
import ReactPlayer from 'react-player' import ReactPlayer from 'react-player'
import { useRouter } from 'next/router' import { useRouter } from 'next/router'
import { useClipboard } from 'use-clipboard-copy' import { useClipboard } from 'use-clipboard-copy'
+1 -1
View File
@@ -1,4 +1,4 @@
import { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types' import type { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types'
const icons: { [key: string]: [IconPrefix, IconName] } = { const icons: { [key: string]: [IconPrefix, IconName] } = {
image: ['far', 'file-image'], image: ['far', 'file-image'],