From f81ce24173f2f40df4e3b44959d0788863f5150d Mon Sep 17 00:00:00 2001 From: devcshort <13677134+devcshort@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:51:33 -0700 Subject: [PATCH] fix: Add icons back and proper spacing --- .../components/search/location-search-bar.tsx | 4 ++-- src/shared/components/ui/autocomplete.tsx | 10 +++++++--- src/shared/components/ui/input.tsx | 18 +++++++++--------- src/shared/components/ui/select.tsx | 6 +++--- 4 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/shared/components/search/location-search-bar.tsx b/src/shared/components/search/location-search-bar.tsx index 26c5a49a..0d69e8f3 100644 --- a/src/shared/components/search/location-search-bar.tsx +++ b/src/shared/components/search/location-search-bar.tsx @@ -49,11 +49,11 @@ export function LocationSearchBar({ className }: LocationSearchBarProps) { return [ ...additionalLocations.map((loc) => ({ value: loc.address, - icon: NavigationIcon, + Icon: NavigationIcon, })), ...locations.map((loc) => ({ value: loc.address, - icon: NavigationIcon, + Icon: NavigationIcon, })), ]; }, [locations, additionalLocations]); diff --git a/src/shared/components/ui/autocomplete.tsx b/src/shared/components/ui/autocomplete.tsx index b6492036..2fa5dfd5 100644 --- a/src/shared/components/ui/autocomplete.tsx +++ b/src/shared/components/ui/autocomplete.tsx @@ -392,7 +392,9 @@ export function Autocomplete(props: AutocompleteProps) { }, []); return ( -
{parse(option.value, matches).map((text, idx) =>
text.highlight ? (
diff --git a/src/shared/components/ui/input.tsx b/src/shared/components/ui/input.tsx
index df68d156..05022db1 100644
--- a/src/shared/components/ui/input.tsx
+++ b/src/shared/components/ui/input.tsx
@@ -1,6 +1,6 @@
-import * as React from "react"
+import * as React from 'react';
-import { cn } from "@/shared/lib/utils"
+import { cn } from '@/shared/lib/utils';
export interface InputProps
extends React.InputHTMLAttributes