diff --git a/resources/scripts/components/server/files/FileManagerContainer.tsx b/resources/scripts/components/server/files/FileManagerContainer.tsx index 1f6c88a19..12e192851 100644 --- a/resources/scripts/components/server/files/FileManagerContainer.tsx +++ b/resources/scripts/components/server/files/FileManagerContainer.tsx @@ -15,6 +15,9 @@ import { bytesToHuman } from '@/helpers'; import { CSSTransition } from 'react-transition-group'; import { Link } from 'react-router-dom'; import Spinner from '@/components/elements/Spinner'; +import { faEllipsisH } from '@fortawesome/free-solid-svg-icons/faEllipsisH'; +import { faFile } from '@fortawesome/free-solid-svg-icons/faFile'; +import { faFileImport } from '@fortawesome/free-solid-svg-icons/faFileImport'; export default () => { const [ loading, setLoading ] = useState(true); @@ -97,16 +100,20 @@ export default () => { files.map(file => ( { + if (file.isFile) { + return e.preventDefault(); + } + }} > -
+
{file.isFile ? - + : } @@ -120,7 +127,7 @@ export default () => {
}
{Math.abs(differenceInHours(file.modifiedAt, new Date())) > 48 ? @@ -129,6 +136,9 @@ export default () => { distanceInWordsToNow(file.modifiedAt, { includeSeconds: true }) }
+
+ +
)) }