diff options
| author | Enrique Pérez Pérez <elmuntiro@gmail.com> | 2026-04-19 19:32:09 +0200 |
|---|---|---|
| committer | Enrique Pérez Pérez <elmuntiro@gmail.com> | 2026-04-19 19:32:09 +0200 |
| commit | 40cc6cea25d048c2e77e11bbfea0cd1e5eb784f6 (patch) | |
| tree | 7ce3a12a417e6943abd33adb1f590a75b4c0bb05 /src/app | |
| parent | 0284c201ba4e7fb0e619be91104220ae24bcf45d (diff) | |
Completado cambios pantalla oficinas y detalle de oficina #12 y #13
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/(protected)/(tabs)/offices/index.tsx | 413 | ||||
| -rw-r--r-- | src/app/(protected)/offices/[officeId].tsx | 408 |
2 files changed, 452 insertions, 369 deletions
diff --git a/src/app/(protected)/(tabs)/offices/index.tsx b/src/app/(protected)/(tabs)/offices/index.tsx index 9040fbd..ee19917 100644 --- a/src/app/(protected)/(tabs)/offices/index.tsx +++ b/src/app/(protected)/(tabs)/offices/index.tsx @@ -9,53 +9,29 @@ import { TextInput, View, } from 'react-native'; + import { useOffices } from '@/features/offices/hooks/useOffices'; import { useFavoriteOffices } from '@/features/offices/hooks/useFavoriteOffices'; -import { StatusMessage } from '@/shared/ui/StatusMessage'; +import { Feather, MaterialIcons } from '@expo/vector-icons'; +import theme from '@/theme'; export default function OfficesScreen() { const { offices, loading, error, reload } = useOffices(); - const { - favoriteOfficeIdsSet, - isLoadingFavorites, - favoritesError, - pendingOfficeId, - toggleFavorite, - } = useFavoriteOffices(); + const { favoriteOfficeIdsSet, isLoadingFavorites } = useFavoriteOffices(); + const [search, setSearch] = useState(''); - const [minimumCapacity, setMinimumCapacity] = useState(''); - const [showFavoritesOnly, setShowFavoritesOnly] = useState(false); const filteredOffices = useMemo(() => { - const normalizedSearch = search.trim().toLowerCase(); - const parsedCapacity = Number(minimumCapacity); - const hasCapacityFilter = minimumCapacity.trim().length > 0 && !Number.isNaN(parsedCapacity); - - return offices.filter((office) => { - const matchesSearch = - normalizedSearch.length === 0 || - office.name.toLowerCase().includes(normalizedSearch); - - const matchesCapacity = - !hasCapacityFilter || office.capacity >= parsedCapacity; - - const matchesFavorites = - !showFavoritesOnly || favoriteOfficeIdsSet.has(office.id); - - return matchesSearch && matchesCapacity && matchesFavorites; - }); - }, [favoriteOfficeIdsSet, minimumCapacity, offices, search, showFavoritesOnly]); - - const clearFilters = () => { - setSearch(''); - setMinimumCapacity(''); - setShowFavoritesOnly(false); - }; + const normalized = search.toLowerCase(); + return offices.filter((o) => + o.name.toLowerCase().includes(normalized) + ); + }, [offices, search]); if (loading || isLoadingFavorites) { return ( <View style={styles.center}> - <ActivityIndicator size="large" /> + <ActivityIndicator /> </View> ); } @@ -63,223 +39,278 @@ export default function OfficesScreen() { if (error) { return ( <View style={styles.center}> - <Text style={styles.error}>{error}</Text> - <Pressable style={styles.button} onPress={reload}> - <Text style={styles.buttonText}>Reintentar</Text> + <Text style={{ color: theme.colors.error }}>{error}</Text> + <Pressable style={styles.primaryButton} onPress={reload}> + <Text style={styles.primaryButtonText}>Reintentar</Text> </Pressable> </View> ); } return ( - <View style={styles.container}> - <Text style={styles.title}>Espacios</Text> - - <View style={styles.filtersBox}> - <Text style={styles.filtersTitle}>Buscar y filtrar</Text> + <View style={styles.container}> + <View style={styles.content}> + {/* HEADER */} + <View style={styles.header}> + <Text style={styles.title}>Espacios disponibles</Text> + {/* SEARCH */} <TextInput - style={styles.input} - placeholder="Buscar por nombre" + style={styles.search} + placeholder="Buscar espacios..." value={search} onChangeText={setSearch} /> - - <TextInput - style={styles.input} - placeholder="Capacidad mínima" - value={minimumCapacity} - onChangeText={(value) => setMinimumCapacity(value.replace(/\D/g, ''))} - keyboardType="number-pad" - /> - - <View style={styles.filterActions}> - <Pressable - style={[ - styles.toggleButton, - showFavoritesOnly && styles.toggleButtonActive, - ]} - onPress={() => setShowFavoritesOnly((current) => !current)} - > - <Text style={styles.buttonText}> - {showFavoritesOnly ? 'Viendo favoritos' : 'Solo favoritos'} - </Text> - </Pressable> - - <Pressable style={styles.secondaryButton} onPress={clearFilters}> - <Text style={styles.buttonText}>Limpiar filtros</Text> - </Pressable> - </View> </View> - {favoritesError ? <StatusMessage message={favoritesError} /> : null} + {/* COUNT */} + <Text style={styles.resultText}> + {filteredOffices.length} espacio + {filteredOffices.length !== 1 ? 's' : ''} encontrados + </Text> + {/* LIST */} <FlatList data={filteredOffices} keyExtractor={(item) => item.id} contentContainerStyle={styles.list} - ListEmptyComponent={ - <Text style={styles.empty}> - {offices.length === 0 - ? 'No hay espacios disponibles' - : showFavoritesOnly - ? 'No tienes oficinas favoritas que coincidan con los filtros' - : 'No hay espacios que coincidan con los filtros'} - </Text> - } - renderItem={({ item }) => ( - <View style={styles.card}> - <View style={styles.cardHeader}> - <Text style={styles.cardTitle}>{item.name}</Text> - <Pressable - style={[ - styles.favoriteButton, - favoriteOfficeIdsSet.has(item.id) && styles.favoriteButtonActive, - ]} - onPress={() => { - void toggleFavorite(item.id); - }} - disabled={pendingOfficeId === item.id} - > - <Text style={styles.favoriteButtonText}> - {pendingOfficeId === item.id - ? '...' - : favoriteOfficeIdsSet.has(item.id) - ? '★' - : '☆'} - </Text> - </Pressable> - </View> + renderItem={({ item }) => { + const isFav = favoriteOfficeIdsSet.has(item.id); + return ( <Link href={`/(protected)/offices/${item.id}`} asChild> - <Pressable style={styles.cardBody}> - <Text>{item.location}</Text> - <Text>Capacidad: {item.capacity}</Text> - {item.description ? <Text>{item.description}</Text> : null} + <Pressable style={styles.card}> + <View style={styles.cardContent}> + {/* IMAGE PLACEHOLDER */} + {/*<View style={styles.imageBox}> + <Text style={styles.imageIcon}>🏢</Text> + </View>*/} +<View style={styles.imageBox}> + <MaterialIcons + name="business" + size={40} + color={theme.colors.primary} + /> +</View> + {/* INFO */} + <View style={styles.info}> + <View style={styles.rowBetween}> + <View style={{ flex: 1 }}> + <Text style={styles.cardTitle}>{item.name}</Text> + <Text style={styles.cardSubtitle}> + {item.location} + </Text> + </View> + + <Text style={styles.chevron}>›</Text> + </View> + + <Text style={styles.capacity}> + {item.capacity} personas + </Text> + + <View style={styles.footer}> + {/*<Text style={styles.price}> + {item.price ?? '—'} + </Text>*/} + + <View + style={[ + styles.badge, + isFav && styles.badgeActive, + ]} + > + <Text + style={[ + styles.badgeText, + isFav && styles.badgeTextActive, + ]} + > + {isFav ? 'Favorito' : 'Disponible'} + </Text> + </View> + </View> + </View> + </View> </Pressable> </Link> + ); + }} + ListEmptyComponent={ + <View style={styles.emptyBox}> + <Text style={styles.emptyText}> + No se encontraron espacios + </Text> </View> - )} + } /> </View> + </View> ); } const styles = StyleSheet.create({ container: { flex: 1, - padding: 16, + backgroundColor: theme.colors.background, }, + +content: { + flex: 1, + width: '100%', + maxWidth: theme.layout.contentWidth, + alignSelf: 'center', +}, + center: { flex: 1, - alignItems: 'center', justifyContent: 'center', - padding: 24, - }, - title: { - fontSize: 28, - fontWeight: '700', - marginBottom: 16, + alignItems: 'center', }, - filtersBox: { - borderWidth: 1, - borderColor: '#d8e0ea', - backgroundColor: '#f7f9fc', - borderRadius: 12, - padding: 12, - gap: 10, - marginBottom: 16, + + header: { + backgroundColor: theme.colors.surface, + padding: theme.spacing.xl, + borderBottomWidth: 1, + borderColor: theme.colors.border, }, - filtersTitle: { - fontSize: 16, - fontWeight: '700', - color: '#22354a', + + title: { + fontSize: theme.typography.xxxl, + fontWeight: theme.fontWeight.semibold, + color: theme.colors.text, + marginBottom: theme.spacing.md, }, - input: { + + search: { + backgroundColor: theme.colors.white, borderWidth: 1, - borderColor: '#ccd5df', - borderRadius: 10, - paddingHorizontal: 14, - paddingVertical: 12, - backgroundColor: '#fff', + borderColor: theme.colors.border, + borderRadius: theme.radius.lg, + paddingHorizontal: theme.spacing.lg, + paddingVertical: theme.spacing.md, }, - filterActions: { - flexDirection: 'row', - gap: 10, + + resultText: { + fontSize: theme.typography.sm, + color: theme.colors.textSecondary, + paddingHorizontal: theme.spacing.xl, + paddingTop: theme.spacing.md, }, + list: { - gap: 12, + padding: theme.spacing.xl, + gap: theme.spacing.lg, }, + card: { + backgroundColor: theme.colors.surface, + borderRadius: theme.radius.lg, + padding: theme.spacing.lg, borderWidth: 1, - borderColor: '#ddd', - borderRadius: 12, - padding: 16, - gap: 10, + borderColor: theme.colors.border, + ...theme.shadows.card, }, - cardHeader: { + + cardContent: { flexDirection: 'row', + gap: theme.spacing.lg, + }, + + imageBox: { + width: 80, + height: 80, + borderRadius: theme.radius.lg, + backgroundColor: theme.colors.primarySoft, alignItems: 'center', + justifyContent: 'center', + }, + + imageIcon: { + fontSize: 28, + }, + + info: { + flex: 1, + gap: theme.spacing.sm, + }, + + rowBetween: { + flexDirection: 'row', justifyContent: 'space-between', - gap: 12, + alignItems: 'flex-start', }, + cardTitle: { - fontSize: 18, - fontWeight: '600', - flex: 1, + fontSize: theme.typography.lg, + fontWeight: theme.fontWeight.semibold, + color: theme.colors.text, }, - cardBody: { - gap: 6, + + cardSubtitle: { + fontSize: theme.typography.sm, + color: theme.colors.textSecondary, }, - error: { - color: 'red', - marginBottom: 12, + + chevron: { + fontSize: 18, + color: theme.colors.muted, }, - button: { - backgroundColor: '#1f6feb', - paddingHorizontal: 16, - paddingVertical: 12, - borderRadius: 10, + + capacity: { + fontSize: theme.typography.sm, + color: theme.colors.textSecondary, }, - secondaryButton: { - backgroundColor: '#5d6b79', - flex: 1, - paddingHorizontal: 16, - paddingVertical: 12, - borderRadius: 10, + + footer: { + flexDirection: 'row', + justifyContent: 'space-between', alignItems: 'center', }, - toggleButton: { - backgroundColor: '#1f6feb', - flex: 1, - paddingHorizontal: 16, - paddingVertical: 12, - borderRadius: 10, - alignItems: 'center', + + price: { + color: theme.colors.primary, + fontWeight: theme.fontWeight.medium, }, - toggleButtonActive: { - backgroundColor: '#174ea6', + + badge: { + backgroundColor: theme.colors.divider, + paddingHorizontal: theme.spacing.md, + paddingVertical: theme.spacing.xs, + borderRadius: theme.radius.sm, }, - favoriteButton: { - width: 40, - height: 40, - borderRadius: 20, - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#eef2f6', + + badgeActive: { + backgroundColor: theme.colors.successBg, + }, + + badgeText: { + fontSize: theme.typography.sm, + color: theme.colors.textSecondary, + }, + + badgeTextActive: { + color: theme.colors.successText, }, - favoriteButtonActive: { - backgroundColor: '#ffe8a3', + + emptyBox: { + alignItems: 'center', + padding: theme.spacing.xxxl, }, - favoriteButtonText: { - fontSize: 20, - color: '#8a6700', + + emptyText: { + color: theme.colors.textSecondary, }, - buttonText: { - color: '#fff', - fontWeight: '600', + + primaryButton: { + marginTop: theme.spacing.md, + backgroundColor: theme.colors.primary, + padding: theme.spacing.md, + borderRadius: theme.radius.md, }, - empty: { - color: '#666', + + primaryButtonText: { + color: theme.colors.white, + fontWeight: theme.fontWeight.semibold, }, -}); +});
\ No newline at end of file diff --git a/src/app/(protected)/offices/[officeId].tsx b/src/app/(protected)/offices/[officeId].tsx index c632490..fbcd9f8 100644 --- a/src/app/(protected)/offices/[officeId].tsx +++ b/src/app/(protected)/offices/[officeId].tsx @@ -5,37 +5,31 @@ import { ScrollView, StyleSheet, Text, - TextInput, View, } from 'react-native'; + import { useOffice } from '@/features/offices/hooks/useOffice'; import { useFavoriteOffices } from '@/features/offices/hooks/useFavoriteOffices'; -import { StatusMessage } from '@/shared/ui/StatusMessage'; -import { useOfficeAvailability } from '@/features/reservations/hooks/useOfficeAvailability'; + +import theme from '@/theme'; +import { Feather, MaterialIcons } from '@expo/vector-icons'; export default function OfficeDetailScreen() { const params = useLocalSearchParams<{ officeId: string }>(); - const officeId = typeof params.officeId === 'string' ? params.officeId : undefined; + const officeId = + typeof params.officeId === 'string' ? params.officeId : undefined; const { office, loading, error, reload } = useOffice(officeId); const { favoriteOfficeIdsSet, - favoritesError, pendingOfficeId, toggleFavorite, } = useFavoriteOffices(); - const { - selectedDate, - reservations, - loading: loadingAvailability, - error: availabilityError, - setSelectedDate, - } = useOfficeAvailability(officeId); if (loading) { return ( <View style={styles.center}> - <ActivityIndicator size="large" /> + <ActivityIndicator /> </View> ); } @@ -43,230 +37,288 @@ export default function OfficeDetailScreen() { if (error || !office) { return ( <View style={styles.center}> - <Text style={styles.error}>{error ?? 'No se pudo cargar la oficina'}</Text> + <Text style={{ color: theme.colors.error }}> + {error ?? 'No se pudo cargar el espacio'} + </Text> - <Pressable style={styles.button} onPress={reload}> - <Text style={styles.buttonText}>Reintentar</Text> + <Pressable style={styles.primaryButton} onPress={reload}> + <Text style={styles.primaryButtonText}>Reintentar</Text> </Pressable> <Link href="/(protected)/offices" asChild> <Pressable style={styles.secondaryButton}> - <Text style={styles.buttonText}>Volver a espacios</Text> + <Text style={styles.primaryButtonText}>Volver</Text> </Pressable> </Link> </View> ); } + const isFav = favoriteOfficeIdsSet.has(office.id); + return ( <ScrollView contentContainerStyle={styles.container}> - <View style={styles.header}> - <Text style={styles.title}>{office.name}</Text> + <View style={styles.content}> + {/* HEADER */} + <Link href="/(protected)/offices" asChild> + <Pressable> + <Text style={styles.back}>← Volver a espacios</Text> + </Pressable> + </Link> + + {/* IMAGE */} + {/*<View style={styles.imageBox}> + <Text style={styles.imageIcon}>🏢</Text> + </View>*/} +<View style={styles.imageBox}> + <MaterialIcons + name="business" + size={80} + color={theme.colors.primary} + /> +</View> + + {/* TITLE */} + <View style={styles.titleRow}> + <View style={{ flex: 1 }}> + <Text style={styles.title}>{office.name}</Text> + <Text style={styles.subtitle}> + {office.location ?? 'Sin ubicación'} + </Text> + </View> + + <View + style={[ + styles.badge, + office.available && styles.badgeActive, + ]} + > + <Text + style={[ + styles.badgeText, + office.available && styles.badgeTextActive, + ]} + > + {office.available ? 'Disponible' : 'Ocupado'} + </Text> + </View> + </View> + + {/* CAPACITY + PRICE */} + <View style={styles.metaRow}> + <Text style={styles.meta}> + {office.capacity} personas + </Text> + + {/* <Text style={styles.price}> + {office.price ?? '—'} + </Text>*/} + </View> + + {/* DESCRIPTION */} + {office.description && ( + <View style={styles.card}> + <Text style={styles.sectionTitle}>Descripción</Text> + <Text style={styles.text}>{office.description}</Text> + </View> + )} + + {/* FAVORITE */} <Pressable style={[ styles.favoriteButton, - favoriteOfficeIdsSet.has(office.id) && styles.favoriteButtonActive, + isFav && styles.favoriteButtonActive, ]} - onPress={() => { - void toggleFavorite(office.id); - }} + onPress={() => toggleFavorite(office.id)} disabled={pendingOfficeId === office.id} > - <Text style={styles.favoriteButtonText}> + <Text style={styles.favoriteText}> {pendingOfficeId === office.id ? '...' - : favoriteOfficeIdsSet.has(office.id) - ? '★' - : '☆'} + : isFav + ? '★ Guardado' + : '☆ Guardar como favorito'} </Text> </Pressable> - </View> - - {favoritesError ? <StatusMessage message={favoritesError} /> : null} - {availabilityError ? <StatusMessage message={availabilityError} /> : null} - - <View style={styles.card}> - <Text style={styles.label}>Ubicación</Text> - <Text style={styles.value}>{office.location}</Text> - <Text style={styles.label}>Capacidad</Text> - <Text style={styles.value}>{office.capacity} personas</Text> - - {office.description ? ( - <> - <Text style={styles.label}>Descripción</Text> - <Text style={styles.value}>{office.description}</Text> - </> - ) : null} - </View> - - <View style={styles.card}> - <Text style={styles.sectionTitle}>Disponibilidad</Text> - - <Text style={styles.label}>Fecha</Text> - <TextInput - style={styles.input} - placeholder="2026-04-01" - value={selectedDate} - onChangeText={setSelectedDate} - keyboardType="number-pad" - maxLength={10} - /> - - <Text style={styles.helper}>Consulta los horarios ocupados para esa fecha</Text> - - {loadingAvailability ? ( - <ActivityIndicator size="small" /> - ) : availabilityError ? null : reservations.length === 0 ? ( - <Text style={styles.availableText}>No hay bloques ocupados para esta fecha</Text> - ) : ( - <View style={styles.availabilityList}> - {reservations.map((reservation) => ( - <View key={reservation.id} style={styles.availabilityItem}> - <Text style={styles.availabilityTime}> - {reservation.startTime} - {reservation.endTime} - </Text> - <Text style={styles.availabilityStatus}>Ocupado</Text> - </View> - ))} - </View> - )} + {/* RESERVE BUTTON */} + <Link + href={{ + pathname: '/(protected)/reservations/create', + params: { + officeId: office.id, + officeName: office.name, + }, + }} + asChild + > + <Pressable style={styles.reserveButton}> + <Text style={styles.reserveText}> + Reservar ahora + </Text> + </Pressable> + </Link> </View> - - <Link - href={{ - pathname: '/(protected)/reservations/create', - params: { - officeId: office.id, - officeName: office.name, - }, - }} - asChild - > - <Pressable style={styles.button}> - <Text style={styles.buttonText}>Reservar este espacio</Text> - </Pressable> - </Link> - </ScrollView> ); } const styles = StyleSheet.create({ container: { - flex: 1, - padding: 16, - gap: 16, + paddingVertical: theme.spacing.xl, + }, + + content: { + width: '100%', + maxWidth: theme.layout.contentWidth, + alignSelf: 'center', + paddingHorizontal: theme.spacing.xl, + gap: theme.spacing.xl, }, + center: { flex: 1, - alignItems: 'center', justifyContent: 'center', - padding: 24, - gap: 12, + alignItems: 'center', + padding: theme.spacing.xl, + gap: theme.spacing.md, }, - title: { - fontSize: 28, - fontWeight: '700', - flex: 1, + + back: { + color: theme.colors.textSecondary, + fontSize: theme.typography.md, }, - header: { - flexDirection: 'row', + + imageBox: { + width: '100%', + height: 180, + borderRadius: theme.radius.xl, + backgroundColor: theme.colors.primarySoft, alignItems: 'center', - gap: 12, - }, - card: { - borderWidth: 1, - borderColor: '#ddd', - borderRadius: 12, - padding: 16, - gap: 10, + justifyContent: 'center', }, - label: { - fontSize: 14, - fontWeight: '700', - color: '#444', + + imageIcon: { + fontSize: 48, }, - sectionTitle: { - fontSize: 20, - fontWeight: '700', - marginBottom: 4, + + titleRow: { + flexDirection: 'row', + justifyContent: 'space-between', + alignItems: 'flex-start', + gap: theme.spacing.md, }, - value: { - fontSize: 16, - color: '#111', + + title: { + fontSize: theme.typography.xxxl, + fontWeight: theme.fontWeight.semibold, + color: theme.colors.text, }, - input: { - borderWidth: 1, - borderColor: '#ccc', - borderRadius: 10, - paddingHorizontal: 14, - paddingVertical: 12, + + subtitle: { + color: theme.colors.textSecondary, marginTop: 4, }, - helper: { - color: '#666', - fontSize: 12, + + metaRow: { + flexDirection: 'row', + justifyContent: 'space-between', + alignItems: 'center', }, - availabilityList: { - gap: 10, - marginTop: 8, + + meta: { + color: theme.colors.textSecondary, + }, + + price: { + color: theme.colors.primary, + fontSize: theme.typography.xxl, + fontWeight: theme.fontWeight.semibold, }, - availabilityItem: { + + card: { + backgroundColor: theme.colors.surface, + borderRadius: theme.radius.lg, + padding: theme.spacing.lg, borderWidth: 1, - borderColor: '#d9e5d4', - backgroundColor: '#f3faf1', - borderRadius: 10, - padding: 12, - gap: 4, + borderColor: theme.colors.border, + ...theme.shadows.card, }, - availabilityTime: { - fontSize: 16, - fontWeight: '600', - color: '#1f3a1a', + + sectionTitle: { + fontSize: theme.typography.lg, + fontWeight: theme.fontWeight.semibold, + marginBottom: theme.spacing.sm, + color: theme.colors.text, }, - availabilityStatus: { - color: '#336b2f', - fontSize: 13, + + text: { + color: theme.colors.textSecondary, }, - availableText: { - color: '#2e7d32', - marginTop: 8, + + badge: { + backgroundColor: theme.colors.divider, + paddingHorizontal: theme.spacing.md, + paddingVertical: theme.spacing.xs, + borderRadius: theme.radius.sm, }, - button: { - backgroundColor: '#1f6feb', - paddingVertical: 14, - borderRadius: 10, - alignItems: 'center', + + badgeActive: { + backgroundColor: theme.colors.successBg, }, - secondaryButton: { - backgroundColor: '#555', - paddingVertical: 14, - paddingHorizontal: 16, - borderRadius: 10, - alignItems: 'center', + + badgeText: { + color: theme.colors.textSecondary, + fontSize: theme.typography.sm, }, + + badgeTextActive: { + color: theme.colors.successText, + }, + favoriteButton: { - width: 44, - height: 44, - borderRadius: 22, + padding: theme.spacing.md, + borderRadius: theme.radius.md, + backgroundColor: theme.colors.divider, alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#eef2f6', }, + favoriteButtonActive: { backgroundColor: '#ffe8a3', }, - favoriteButtonText: { - fontSize: 22, - color: '#8a6700', + + favoriteText: { + fontWeight: theme.fontWeight.medium, + color: theme.colors.text, + }, + + reserveButton: { + backgroundColor: theme.colors.primary, + paddingVertical: theme.spacing.lg, + borderRadius: theme.radius.lg, + alignItems: 'center', }, - buttonText: { - color: '#fff', - fontWeight: '600', + + reserveText: { + color: theme.colors.white, + fontWeight: theme.fontWeight.semibold, + fontSize: theme.typography.lg, }, - error: { - color: 'red', - textAlign: 'center', + + primaryButton: { + backgroundColor: theme.colors.primary, + padding: theme.spacing.md, + borderRadius: theme.radius.md, + }, + + primaryButtonText: { + color: theme.colors.white, + fontWeight: theme.fontWeight.semibold, + }, + + secondaryButton: { + backgroundColor: theme.colors.muted, + padding: theme.spacing.md, + borderRadius: theme.radius.md, }, -}); +});
\ No newline at end of file |