diff --git a/components/FileListing.tsx b/components/FileListing.tsx index 62be03a..db61f05 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -137,7 +137,7 @@ const Checkbox: FC<{ return ( = ({ query }) => {
Last Modified
-
Size
-
Actions
-
+ Size +
+
+ Actions +
+
+
= ({ query }) => { ) : (
) : ( -
+
= ({ query }) => {
)} -
- {c.folder || c.name === '.password' ? ( - '' - ) : ( +
+ {!c.folder && !(c.name === '.password') && ( toggleItemSelected(c.id)} diff --git a/pages/_app.tsx b/pages/_app.tsx index 98fa744..6fa57a8 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -37,6 +37,7 @@ import { faSignOutAlt, faCloud, faChevronCircleDown, + faLink, faExternalLinkAlt, faExclamationCircle, faExclamationTriangle, @@ -74,6 +75,7 @@ library.add( faPlus, faMinus, faDownload, + faLink, faUndo, faBook, faArrowAltCircleDown, diff --git a/utils/getFileIcon.ts b/utils/getFileIcon.ts index 0a1c711..57ac808 100644 --- a/utils/getFileIcon.ts +++ b/utils/getFileIcon.ts @@ -14,6 +14,7 @@ const icons: { [key: string]: [IconPrefix, IconName] } = { file: ['far', 'file'], markdown: ['fab', 'markdown'], book: ['fas', 'book'], + link: ['fas', 'link'], } const extensions = { @@ -73,6 +74,8 @@ const extensions = { epub: icons.book, mobi: icons.book, azw3: icons.book, + + url: icons.link, } /**