diff --git a/src/components/FindNotebooksCommand.tsx b/src/components/FindNotebooksCommand.tsx index 963de2b..80bd0ee 100644 --- a/src/components/FindNotebooksCommand.tsx +++ b/src/components/FindNotebooksCommand.tsx @@ -51,7 +51,7 @@ export default function FindNotebooksCommand({ src }: { src: Sourcegraph }) { selectedItemId={length > 0 ? "first-result" : undefined} throttle > - {!loading && !searchText ? ( + {!loading && !searchText && ( - ) : ( - )} - {notebooks && ( - - {notebooks.map((n, i) => ( - - ))} - - )} + {loading && length === 0 && } + + + {notebooks?.map((n, i) => ( + + ))} + ); } diff --git a/src/components/ManageBatchChangesCommand.tsx b/src/components/ManageBatchChangesCommand.tsx index 226376f..9cc0a25 100644 --- a/src/components/ManageBatchChangesCommand.tsx +++ b/src/components/ManageBatchChangesCommand.tsx @@ -1,6 +1,6 @@ import { ActionPanel, List, Action, Icon, useNavigation, Toast, Image, Color, showToast, Form } from "@raycast/api"; import { getProgressIcon } from "@raycast/utils"; -import { useState, Fragment, useMemo, useEffect } from "react"; +import { useState, useMemo, useEffect } from "react"; import { DateTime } from "luxon"; import { nanoid } from "nanoid"; @@ -57,10 +57,10 @@ export default function ManageBatchChanges({ src }: { src: Sourcegraph }) { isLoading={loading} searchBarPlaceholder={`Manage batch changes on ${srcName}`} onSearchTextChange={setSearchText} - enableFiltering={true} + filtering={true} selectedItemId={showSuggestions ? "first-result" : undefined} > - {showSuggestions ? ( + {showSuggestions && ( - ) : ( - )} diff --git a/src/findNotebooksInstance.tsx b/src/findNotebooksInstance.tsx index 3e0e518..a052892 100644 --- a/src/findNotebooksInstance.tsx +++ b/src/findNotebooksInstance.tsx @@ -1,6 +1,6 @@ import FindNotebooksCommand from "./components/FindNotebooksCommand"; import InstanceCommand from "./components/InstanceCommand"; -export default async function FindNotebooksInstance() { +export default function FindNotebooksInstance() { return ; }