Fix build

This commit is contained in:
bkellam 2024-09-26 11:19:04 -07:00
parent 10aa249995
commit a98db52bf4
3 changed files with 6 additions and 8 deletions

View file

@ -21,18 +21,12 @@ import { SettingsDropdown } from "../settingsDropdown";
import useCaptureEvent from "@/hooks/useCaptureEvent";
import { CodePreviewPanel } from "./components/codePreviewPanel";
import { SearchResultsPanel } from "./components/searchResultsPanel";
import { SearchResultFile } from "@/lib/types";
import { SearchQueryParams, SearchResultFile } from "@/lib/types";
import { ScrollArea } from "@/components/ui/scroll-area";
import { Scrollbar } from "@radix-ui/react-scroll-area";
const DEFAULT_MAX_MATCH_DISPLAY_COUNT = 200;
export enum SearchQueryParams {
query = "query",
maxMatchDisplayCount = "maxMatchDisplayCount",
}
export default function SearchPage() {
const router = useRouter();
const searchQuery = useNonEmptyQueryParam(SearchQueryParams.query) ?? "";

View file

@ -16,7 +16,7 @@ import { useForm } from "react-hook-form";
import { z } from "zod";
import { useHotkeys } from 'react-hotkeys-hook'
import { useRef } from "react";
import { SearchQueryParams } from "./search/page";
import { SearchQueryParams } from "@/lib/types";
interface SearchBarProps {
className?: string;

View file

@ -17,3 +17,7 @@ export type ListRepositoriesResponse = z.infer<typeof listRepositoriesResponseSc
export type Repository = z.infer<typeof repositorySchema>;
export type SearchRequest = z.infer<typeof searchRequestSchema>;
export enum SearchQueryParams {
query = "query",
maxMatchDisplayCount = "maxMatchDisplayCount",
}