diff --git a/src/app/page.tsx b/src/app/page.tsx index 7f63704f..2dd2dbee 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -58,36 +58,38 @@ export default function Home() { // Currently we do not re-query. return ( -
-
- {"Sourcebot - setQuery(query)} - onLoadingChange={(isLoading) => setIsLoading(isLoading)} - onSearchResult={(result) => { - if (result) { - setFileMatches(result.FileMatches ?? []); - setSearchDurationMs(Math.round(result.Stats.Duration / 1000000)); - } +
+
+
+ {"Sourcebot + setQuery(query)} + onLoadingChange={(isLoading) => setIsLoading(isLoading)} + onSearchResult={(result) => { + if (result) { + setFileMatches(result.FileMatches ?? []); + setSearchDurationMs(Math.round(result.Stats.Duration / 1000000)); + } - router.push(`?query=${query}&numResults=${numResults}`); - }} - /> - {isLoading && ( - - )} + router.push(`?query=${query}&numResults=${numResults}`); + }} + /> + {isLoading && ( + + )} +
+ +
+

Results for: {fileMatches.length} files in {searchDurationMs} ms

+
+
- -
-

Results for: {fileMatches.length} files in {searchDurationMs} ms

-
-
{fileMatches.map((match, index) => (