From 91fbca623b9744056a4b96985df9ddeff5133330 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Mon, 1 Jan 2024 01:21:12 -0800 Subject: [PATCH] fix: prevent pointer blocking behavior of chevron on dropdowns --- components/DropdownComponent.tsx | 2 +- components/search/FilterComponents.tsx | 2 +- components/search/ScrollToTop.tsx | 16 ++-------------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/components/DropdownComponent.tsx b/components/DropdownComponent.tsx index 9107590..05af086 100644 --- a/components/DropdownComponent.tsx +++ b/components/DropdownComponent.tsx @@ -67,7 +67,7 @@ export const DropdownComponentSearch = (props: DropdownComponentProps) => { ))} -
+
diff --git a/components/search/FilterComponents.tsx b/components/search/FilterComponents.tsx index 562a927..062297e 100644 --- a/components/search/FilterComponents.tsx +++ b/components/search/FilterComponents.tsx @@ -262,7 +262,7 @@ export const SortDropdown = (props: SortDropdownProps) => { ))} -
+
diff --git a/components/search/ScrollToTop.tsx b/components/search/ScrollToTop.tsx index 67041fe..4f86f04 100644 --- a/components/search/ScrollToTop.tsx +++ b/components/search/ScrollToTop.tsx @@ -1,4 +1,5 @@ import React, { useEffect, useState } from "react"; +import { FaChevronUp } from "react-icons/fa"; const ScrollToTop = () => { const [isVisible, setIsVisible] = useState(false); @@ -33,20 +34,7 @@ const ScrollToTop = () => { onClick={scrollToTop} >
- - - +