chore: fix UI
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
Modal,
|
||||
StatusBar,
|
||||
Alert,
|
||||
useWindowDimensions,
|
||||
} from "react-native";
|
||||
import {
|
||||
useRoute,
|
||||
@@ -41,10 +42,10 @@ import { useAlert } from "../../hooks/useAlert";
|
||||
|
||||
type Route = RouteProp<AdminStackParamList, "OrderDetail">;
|
||||
|
||||
const MAP_HEIGHT = 240;
|
||||
|
||||
export default function OrderDetailScreen() {
|
||||
const { colors } = useTheme();
|
||||
const { height: screenHeight } = useWindowDimensions();
|
||||
const MAP_HEIGHT = screenHeight < 700 ? 180 : 240;
|
||||
const route = useRoute<Route>();
|
||||
const navigation = useNavigation();
|
||||
const { orderId } = route.params;
|
||||
@@ -472,7 +473,7 @@ export default function OrderDetailScreen() {
|
||||
fontWeight: "700",
|
||||
},
|
||||
}),
|
||||
[colors],
|
||||
[colors, MAP_HEIGHT],
|
||||
);
|
||||
|
||||
if (loading) return <LoadingSpinner message="Chargement..." />;
|
||||
|
||||
Reference in New Issue
Block a user