cập nhật thông tin cảng trong modal add/edit trip, tối ưu lại UI modal add/edit trip

This commit is contained in:
2025-12-24 11:38:23 +07:00
parent 000a4ed856
commit 24847504b1
9 changed files with 491 additions and 127 deletions

View File

@@ -26,6 +26,7 @@ interface MaterialCostListProps {
items: TripCost[];
onChange: (items: TripCost[]) => void;
disabled?: boolean;
hideTitle?: boolean;
}
// Predefined cost types
@@ -41,6 +42,7 @@ export default function MaterialCostList({
items,
onChange,
disabled = false,
hideTitle = false,
}: MaterialCostListProps) {
const { t } = useI18n();
const { colors } = useThemeContext();
@@ -133,9 +135,11 @@ export default function MaterialCostList({
return (
<View style={styles.container}>
<Text style={[styles.sectionTitle, themedStyles.sectionTitle]}>
{t("trip.costTable.title")}
</Text>
{!hideTitle && (
<Text style={[styles.sectionTitle, themedStyles.sectionTitle]}>
{t("trip.costTable.title")}
</Text>
)}
{/* Cost Items List */}
{items.map((cost) => (