mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 13:41:59 +00:00
fix: cleanup code
This commit is contained in:
@@ -52,7 +52,6 @@ export interface File {
|
|||||||
export enum FileSelectionType {
|
export enum FileSelectionType {
|
||||||
FILE,
|
FILE,
|
||||||
FOLDER,
|
FOLDER,
|
||||||
NONE,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FileListing {
|
interface FileListing {
|
||||||
@@ -141,7 +140,7 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({
|
|||||||
//How much files per page to show, default 1000
|
//How much files per page to show, default 1000
|
||||||
max = 1000,
|
max = 1000,
|
||||||
//Which picking option to select by default
|
//Which picking option to select by default
|
||||||
fileSelType = FileSelectionType.NONE,
|
fileSelType = FileSelectionType.FOLDER,
|
||||||
onSubmit,
|
onSubmit,
|
||||||
closeModal,
|
closeModal,
|
||||||
}) => {
|
}) => {
|
||||||
@@ -342,7 +341,7 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({
|
|||||||
</Focusable>
|
</Focusable>
|
||||||
</DialogControlsSection>
|
</DialogControlsSection>
|
||||||
</DialogBody>
|
</DialogBody>
|
||||||
{!loading && error === FileErrorTypes.None && fileSelType !== FileSelectionType.NONE && (
|
{!loading && error === FileErrorTypes.None && (
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
<DialogButton
|
<DialogButton
|
||||||
className="Primary"
|
className="Primary"
|
||||||
|
|||||||
Reference in New Issue
Block a user