First commit of the new app
This commit is contained in:
18
assets/components/reserva/FieldBox.tsx
Normal file
18
assets/components/reserva/FieldBox.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import styles from '@/styles/screens/reserva/detail.styles';
|
||||
import { Text, View } from 'react-native';
|
||||
|
||||
type Props = {
|
||||
label: string;
|
||||
value?: string | null;
|
||||
};
|
||||
|
||||
export function FieldBox({ label, value }: Props) {
|
||||
return (
|
||||
<View>
|
||||
<Text style={styles.fieldLabel}>{label}</Text>
|
||||
<View style={styles.fieldBox}>
|
||||
<Text style={styles.fieldBoxText}>{value || '---'}</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user