diff options
| author | Anita <ana.tqtc@gmail.com> | 2026-04-18 13:33:06 +0100 |
|---|---|---|
| committer | Anita <ana.tqtc@gmail.com> | 2026-04-18 13:33:06 +0100 |
| commit | 252f749e8c695dd54af3cc8370b3c09877240eb9 (patch) | |
| tree | 9a01386603b2b92411fcd254ae0bd2efce96c19f /src | |
| parent | 6451a457ee53af8624812f2b7a2a9bcd897c3a1d (diff) | |
feat(home): mejora estado reservas (pendiente/confirmada) refs #4
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/(protected)/(tabs)/home.tsx | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/src/app/(protected)/(tabs)/home.tsx b/src/app/(protected)/(tabs)/home.tsx index 5a8a04e..e3458ab 100644 --- a/src/app/(protected)/(tabs)/home.tsx +++ b/src/app/(protected)/(tabs)/home.tsx @@ -146,8 +146,22 @@ export default function HomeScreen() { {reservation.startTime} - {reservation.endTime} </Text> - <View style={styles.statusBadge}> - <Text style={styles.statusText}> + <View + style={[ + styles.statusBadge, + reservation.checkInAt + ? styles.statusConfirmed + : styles.statusPending, + ]} + > + <Text + style={[ + styles.statusText, + reservation.checkInAt + ? styles.statusTextConfirmed + : styles.statusTextPending, + ]} + > {reservation.checkInAt ? 'Confirmada' : 'Pendiente'} </Text> </View> @@ -375,6 +389,22 @@ const styles = StyleSheet.create({ paddingVertical: spacing.xs, borderRadius: radius.sm, }, + // estado confirmada (verde) + statusConfirmed: { + backgroundColor: colors.successBg, + }, + + statusTextConfirmed: { + color: colors.successText, + }, + // estado pendiente (gris neutro) + statusPending: { + backgroundColor: '#EEF2F6', + }, + statusTextPending: { + color: '#475569', + }, + statusText: { color: colors.successText, fontWeight: fontWeight.semibold, |