diff options
| author | AAGaming <aagaming@riseup.net> | 2023-09-25 13:23:38 -0400 |
|---|---|---|
| committer | marios8543 <marios8543@gmail.com> | 2023-10-17 17:08:23 +0300 |
| commit | 8fe80629500ee4897862b1e13917ad3fe6f7d95a (patch) | |
| tree | 5482d24566193668c7ab7269b264cf2d6cfd269d /frontend/src/components/modals/filepicker | |
| parent | 11d731cf35de204f7ade36edeb624db265a87f06 (diff) | |
| download | decky-loader-8fe80629500ee4897862b1e13917ad3fe6f7d95a.tar.gz decky-loader-8fe80629500ee4897862b1e13917ad3fe6f7d95a.zip | |
move type checking to other workflow, fix TS errors, add TSC checking
Diffstat (limited to 'frontend/src/components/modals/filepicker')
| -rw-r--r-- | frontend/src/components/modals/filepicker/index.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx index ae745c9c..c4e72d95 100644 --- a/frontend/src/components/modals/filepicker/index.tsx +++ b/frontend/src/components/modals/filepicker/index.tsx @@ -13,7 +13,7 @@ import { } from 'decky-frontend-lib'; import { filesize } from 'filesize'; import { FunctionComponent, useCallback, useEffect, useMemo, useState } from 'react'; -import { FileIcon, defaultStyles } from 'react-file-icon'; +import { DefaultExtensionType, FileIcon, defaultStyles } from 'react-file-icon'; import { useTranslation } from 'react-i18next'; import { FaArrowUp, FaFolder } from 'react-icons/fa'; @@ -316,7 +316,12 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({ ) : ( <div style={iconStyles}> {file.realpath.includes('.') ? ( - <FileIcon {...defaultStyles[extension]} {...styleDefObj[extension]} extension={''} /> + <FileIcon + {...defaultStyles[extension as DefaultExtensionType]} + // @ts-expect-error + {...styleDefObj[extension]} + extension={''} + /> ) : ( <FileIcon /> )} |
