From 322882d58736f9c3fb96a2952906d1f1b796cb79 Mon Sep 17 00:00:00 2001 From: Xor290 Date: Thu, 23 Apr 2026 08:56:33 +0200 Subject: [PATCH] chore: update UI --- frontend-admin/src/components/ui/Modal.tsx | 7 + .../src/screens/admin/UsersScreen.tsx | 10 +- .../src/screens/cabine/UsersScreen.tsx | 4 +- mobile/src/components/ui/Modal.tsx | 142 ++++++++++-------- .../src/screens/client/OrderHistoryScreen.tsx | 4 +- 5 files changed, 94 insertions(+), 73 deletions(-) diff --git a/frontend-admin/src/components/ui/Modal.tsx b/frontend-admin/src/components/ui/Modal.tsx index 2687f4cc..de13de14 100644 --- a/frontend-admin/src/components/ui/Modal.tsx +++ b/frontend-admin/src/components/ui/Modal.tsx @@ -3,10 +3,12 @@ import { Modal as RNModal, View, ScrollView, + KeyboardAvoidingView, TouchableOpacity, Text, StyleSheet, Animated, + Platform, } from "react-native"; import { Ionicons } from "@expo/vector-icons"; import { spacing, borderRadius, fontSize } from "../../theme"; @@ -133,6 +135,10 @@ export default function Modal({ animationType="fade" onRequestClose={onClose} > + + ); } diff --git a/frontend-admin/src/screens/admin/UsersScreen.tsx b/frontend-admin/src/screens/admin/UsersScreen.tsx index ebb40e15..0b5a2131 100644 --- a/frontend-admin/src/screens/admin/UsersScreen.tsx +++ b/frontend-admin/src/screens/admin/UsersScreen.tsx @@ -974,9 +974,9 @@ export default function UsersScreen() { { color: colors.warning }, ]} > - {item.clientData.amende} + {item.clientData.amende} € - Amendes + Amende )} @@ -1456,16 +1456,16 @@ export default function UsersScreen() { Amende actuelle - {sanctionModal.client?.amende ?? 0} pts + {sanctionModal.client?.amende ?? 0} € {/* Ajouter amende */} } /> - {item.amende} + {item.amende} € - Amendes + Amende )} diff --git a/mobile/src/components/ui/Modal.tsx b/mobile/src/components/ui/Modal.tsx index 27c5365d..f0abc142 100644 --- a/mobile/src/components/ui/Modal.tsx +++ b/mobile/src/components/ui/Modal.tsx @@ -2,10 +2,13 @@ import React, { type ReactNode, useEffect, useRef } from "react"; import { Modal as RNModal, View, + ScrollView, + KeyboardAvoidingView, TouchableOpacity, Text, StyleSheet, Animated, + Platform, } from "react-native"; import { Ionicons } from "@expo/vector-icons"; import { spacing, borderRadius, fontSize } from "../../theme"; @@ -60,74 +63,86 @@ export default function Modal({ animationType="fade" onRequestClose={onClose} > - - - + + - - - {icon && ( - - - - )} - {title && ( - - {title} - - )} - - + + + + {icon && ( + + + + )} + {title && ( + + {title} + + )} + + + + + + - - - - {children} - - + {children} + + + + ); } @@ -190,6 +205,5 @@ const styles = StyleSheet.create({ }, body: { paddingHorizontal: spacing.xl, - paddingBottom: spacing.xl, }, }); diff --git a/mobile/src/screens/client/OrderHistoryScreen.tsx b/mobile/src/screens/client/OrderHistoryScreen.tsx index c44e8be3..0d4f0179 100644 --- a/mobile/src/screens/client/OrderHistoryScreen.tsx +++ b/mobile/src/screens/client/OrderHistoryScreen.tsx @@ -333,10 +333,10 @@ export default function OrderHistoryScreen() { penaltyCount > 0 && penaltyCount < 3 && { color: colors.warning }, ]} > - {penaltyCount} + {penaltyCount} € - Score amendes + Amende )}