Skip to content

Commit a98db52

Browse files
Fix build
1 parent 10aa249 commit a98db52

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/app/search/page.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@ import { SettingsDropdown } from "../settingsDropdown";
2121
import useCaptureEvent from "@/hooks/useCaptureEvent";
2222
import { CodePreviewPanel } from "./components/codePreviewPanel";
2323
import { SearchResultsPanel } from "./components/searchResultsPanel";
24-
import { SearchResultFile } from "@/lib/types";
24+
import { SearchQueryParams, SearchResultFile } from "@/lib/types";
2525
import { ScrollArea } from "@/components/ui/scroll-area";
2626
import { Scrollbar } from "@radix-ui/react-scroll-area";
2727

2828
const DEFAULT_MAX_MATCH_DISPLAY_COUNT = 200;
2929

30-
export enum SearchQueryParams {
31-
query = "query",
32-
maxMatchDisplayCount = "maxMatchDisplayCount",
33-
}
34-
35-
3630
export default function SearchPage() {
3731
const router = useRouter();
3832
const searchQuery = useNonEmptyQueryParam(SearchQueryParams.query) ?? "";

src/app/searchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { useForm } from "react-hook-form";
1616
import { z } from "zod";
1717
import { useHotkeys } from 'react-hotkeys-hook'
1818
import { useRef } from "react";
19-
import { SearchQueryParams } from "./search/page";
19+
import { SearchQueryParams } from "@/lib/types";
2020

2121
interface SearchBarProps {
2222
className?: string;

src/lib/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ export type ListRepositoriesResponse = z.infer<typeof listRepositoriesResponseSc
1717
export type Repository = z.infer<typeof repositorySchema>;
1818
export type SearchRequest = z.infer<typeof searchRequestSchema>;
1919

20+
export enum SearchQueryParams {
21+
query = "query",
22+
maxMatchDisplayCount = "maxMatchDisplayCount",
23+
}

0 commit comments

Comments
 (0)