diff --git a/components/FilterSearchComponent.tsx b/components/FilterSearchComponent.tsx index 5362fd4b..38c7aa49 100644 --- a/components/FilterSearchComponent.tsx +++ b/components/FilterSearchComponent.tsx @@ -10,6 +10,8 @@ import { overlay } from 'react-native-paper'; import DoctorComponent from './DoctorComponent'; import Ratebtn from './Ratebtn'; import { Rating } from 'react-native-elements'; +import { ThemeContext } from '@/ctx/ThemeContext'; +import { useContext } from 'react'; interface iconMappingProp{ @@ -30,6 +32,12 @@ export const iconMapping:iconMappingProp = { function FilterPopup({ visible, onClose, cancel, }: RemovefavoritepopProps) { + const { theme, changeTheme } = useContext(ThemeContext) + const outerBackgroundColor = theme === "dark" ? styles.viewDark : styles.viewLight + const titleColor = theme === "dark" ? styles.whiteTitle : styles.introColor + const horizontalColor = theme === 'dark' ? styles.darkHorizontal : styles.greyHorizontal + const resetButtonColor = theme === "dark" ? "#35383F" : "#E9F0FF" + const resetbtnTextColor = theme === "dark" ? "white" : "#246BFD" const [selectedCategory, setSelectedCategory] = useState(data.categories[0]) const [showpopUp, setShowPopup] = useState(false) const [selectedDoctor, setSelectedDoctor] = useState() @@ -60,14 +68,14 @@ function FilterPopup({ visible, onClose, cancel, }: RemovefavoritepopProps) { if(!visible) return null return ( - - - Filter - + + + Filter + - Speciality - + Speciality + - Rating - + Rating + - +