Skip to content

Commit

Permalink
Update PredictiveSearch component and related files
Browse files Browse the repository at this point in the history
  • Loading branch information
hta218 committed Aug 17, 2024
1 parent f316e85 commit 999874b
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/modules/header/DesktopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { useThemeSettings } from "@weaverse/hydrogen";
import { Suspense, useEffect, useState } from "react";
import useWindowScroll from "react-use/esm/useWindowScroll";
import { IconMagnifyingGlass, IconUser } from "~/components/Icons";
import { PredictiveSearch } from "~/components/predictive-search/PredictiveSearch";
import { cn } from "~/lib/cn";
import { type EnhancedMenu, useIsHomePath } from "~/lib/utils";
import { PredictiveSearch } from "~/modules/predictive-search/PredictiveSearch";
import type { RootLoader } from "~/root";
import { Drawer, useDrawer } from "../Drawer";
import { Logo } from "../Logo";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Link } from "@remix-run/react";
import { PredictiveSearchResult } from "./PredictiveSearchResult";
import { usePredictiveSearch } from "./usePredictiveSearch";
import { IconArrowRight } from "../Icons";
import { IconArrowRight } from "../../components/Icons";

export function PredictiveSearchResults() {
let { results, totalResults, searchTerm, searchInputRef } =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SearchResultItemProps } from "./types";
import { Link } from "~/modules/Link";
import clsx from "clsx";
import type { MoneyV2 } from "@shopify/hydrogen/storefront-api-types";
import { CompareAtPrice } from "../CompareAtPrice";
import { CompareAtPrice } from "../../components/CompareAtPrice";
import { getImageAspectRatio, isDiscounted } from "~/lib/utils";

export function SearchResultItem({
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions app/routes/($locale).api.predictive-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import type {
import type {
NormalizedPredictiveSearch,
NormalizedPredictiveSearchResults,
} from "~/components/predictive-search/types";
import { NO_PREDICTIVE_SEARCH_RESULTS } from "~/components/predictive-search/usePredictiveSearch";
} from "~/modules/predictive-search/types";
import { NO_PREDICTIVE_SEARCH_RESULTS } from "~/modules/predictive-search/usePredictiveSearch";

type PredictiveSearchResultItem =
| PredictiveArticleFragment
Expand Down

0 comments on commit 999874b

Please sign in to comment.