|
@@ -31,6 +31,7 @@ import {
|
|
|
import ActionSheet from 'react-native-actions-sheet';
|
|
|
import { ButtonVariants } from 'src/types/components';
|
|
|
import EditSvg from 'assets/icons/travels-screens/pen-to-square.svg';
|
|
|
+import TripIcon from 'assets/icons/travels-section/trip.svg';
|
|
|
|
|
|
type DateMode = 'year' | 'month' | 'full';
|
|
|
type QualityType = {
|
|
@@ -46,6 +47,7 @@ interface DateValue {
|
|
|
|
|
|
interface Visit {
|
|
|
id: number;
|
|
|
+ trip_id: number | null;
|
|
|
startDate: DateValue | null;
|
|
|
endDate: DateValue | null;
|
|
|
quality: QualityType;
|
|
@@ -102,6 +104,7 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
|
|
|
id: Date.now() + Math.random(),
|
|
|
startDate: null,
|
|
|
endDate: null,
|
|
|
+ trip_id: null,
|
|
|
quality: qualityOptions[2],
|
|
|
isExisting: false,
|
|
|
animatedValue: new Animated.Value(0)
|
|
@@ -116,6 +119,7 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
|
|
|
...visit,
|
|
|
isExisting: true,
|
|
|
isEditing: false,
|
|
|
+ trip_id: null,
|
|
|
animatedValue: new Animated.Value(1),
|
|
|
startDate: {
|
|
|
year: visit.year_from || null,
|
|
@@ -476,6 +480,7 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
|
|
|
]}
|
|
|
>
|
|
|
<View style={styles.visitContent}>
|
|
|
+ {visit.trip_id ? <TripIcon width={18} height={18} fill={Colors.DARK_BLUE} /> : null}
|
|
|
<View style={{ flex: 1, gap: 12 }}>
|
|
|
<View style={styles.dateRow}>
|
|
|
<View style={styles.column}>
|