Colota - Android GPS Location tracker
refactor: update theme hook import path in MapCenterButton component
Sumanth Reddy7a428fb16b8c
diff --git a/src/components/features/map/MapCenterButton.tsx b/src/components/features/map/MapCenterButton.tsxindex c4874abc..1c839ccb 100644--- a/src/components/features/map/MapCenterButton.tsx+++ b/src/components/features/map/MapCenterButton.tsx@@ -11,7 +11,7 @@ import {ViewStyle,StyleProp,} from "react-native";-import { useTheme } from "@react-navigation/native";+import { useTheme } from "../../../hooks/useTheme";interface Props {onPress: () => void;@@ -22,6 +22,7 @@ interface Props {export const MapCenterButton: React.FC<Props> = ({ onPress, visible, style }) => {const { colors } = useTheme();+if (!visible) return null;return (