update login, detail table in tripInfo

This commit is contained in:
2025-10-31 23:55:39 +07:00
parent 5801992eae
commit 44fc6848a8
9 changed files with 132 additions and 16 deletions

View File

@@ -73,6 +73,10 @@ const TripCostTable: React.FC = () => {
setCollapsed((prev) => !prev);
};
const handleViewDetail = () => {
console.log("View trip cost details");
};
return (
<View style={styles.container}>
<TouchableOpacity
@@ -140,6 +144,14 @@ const TripCostTable: React.FC = () => {
{tongCong.toLocaleString()}
</Text>
</View>
{/* View Detail Button */}
<TouchableOpacity
style={styles.viewDetailButton}
onPress={handleViewDetail}
>
<Text style={styles.viewDetailText}>Xem chi tiết</Text>
</TouchableOpacity>
</View>
<Animated.View style={{ height: animatedHeight, overflow: "hidden" }}>
@@ -170,6 +182,14 @@ const TripCostTable: React.FC = () => {
{tongCong.toLocaleString()}
</Text>
</View>
{/* View Detail Button */}
<TouchableOpacity
style={styles.viewDetailButton}
onPress={handleViewDetail}
>
<Text style={styles.viewDetailText}>Xem chi tiết</Text>
</TouchableOpacity>
</Animated.View>
</View>
);