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

@@ -21,12 +21,14 @@ interface FishingGearListProps {
items: FishingGear[];
onChange: (items: FishingGear[]) => void;
disabled?: boolean;
hideTitle?: boolean;
}
export default function FishingGearList({
items,
onChange,
disabled = false,
hideTitle = false,
}: FishingGearListProps) {
const { t } = useI18n();
const { colors } = useThemeContext();
@@ -77,9 +79,11 @@ export default function FishingGearList({
return (
<View style={styles.container}>
<Text style={[styles.sectionTitle, themedStyles.sectionTitle]}>
{t("diary.fishingGearList")}
</Text>
{!hideTitle && (
<Text style={[styles.sectionTitle, themedStyles.sectionTitle]}>
{t("diary.fishingGearList")}
</Text>
)}
{/* Gear Items List */}
{items.map((gear, index) => (