File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,18 +21,12 @@ import { SettingsDropdown } from "../settingsDropdown";
2121import useCaptureEvent from "@/hooks/useCaptureEvent" ;
2222import { CodePreviewPanel } from "./components/codePreviewPanel" ;
2323import { SearchResultsPanel } from "./components/searchResultsPanel" ;
24- import { SearchResultFile } from "@/lib/types" ;
24+ import { SearchQueryParams , SearchResultFile } from "@/lib/types" ;
2525import { ScrollArea } from "@/components/ui/scroll-area" ;
2626import { Scrollbar } from "@radix-ui/react-scroll-area" ;
2727
2828const DEFAULT_MAX_MATCH_DISPLAY_COUNT = 200 ;
2929
30- export enum SearchQueryParams {
31- query = "query" ,
32- maxMatchDisplayCount = "maxMatchDisplayCount" ,
33- }
34-
35-
3630export default function SearchPage ( ) {
3731 const router = useRouter ( ) ;
3832 const searchQuery = useNonEmptyQueryParam ( SearchQueryParams . query ) ?? "" ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { useForm } from "react-hook-form";
1616import { z } from "zod" ;
1717import { useHotkeys } from 'react-hotkeys-hook'
1818import { useRef } from "react" ;
19- import { SearchQueryParams } from "./search/page " ;
19+ import { SearchQueryParams } from "@/lib/types " ;
2020
2121interface SearchBarProps {
2222 className ?: string ;
Original file line number Diff line number Diff line change @@ -17,3 +17,7 @@ export type ListRepositoriesResponse = z.infer<typeof listRepositoriesResponseSc
1717export type Repository = z . infer < typeof repositorySchema > ;
1818export type SearchRequest = z . infer < typeof searchRequestSchema > ;
1919
20+ export enum SearchQueryParams {
21+ query = "query" ,
22+ maxMatchDisplayCount = "maxMatchDisplayCount" ,
23+ }
You can’t perform that action at this time.
0 commit comments