From 53bf2d18e6623b84364bc14a0c5b7788be20b1b4 Mon Sep 17 00:00:00 2001 From: Tran Anh Tuan Date: Fri, 7 Nov 2025 16:50:47 +0700 Subject: [PATCH] =?UTF-8?q?th=C3=AAm=20modal=20th=C3=AAm=20m=E1=BB=9Bi/c?= =?UTF-8?q?=E1=BA=ADp=20nh=E1=BA=ADt=20NK=C4=90T?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(tabs)/diary.tsx | 162 +++-- .../modal/CreateOrUpdateHaulModal.tsx | 567 +++++++++++++++++- package-lock.json | 36 ++ package.json | 2 + 4 files changed, 718 insertions(+), 49 deletions(-) diff --git a/app/(tabs)/diary.tsx b/app/(tabs)/diary.tsx index f365595..ffb70c9 100644 --- a/app/(tabs)/diary.tsx +++ b/app/(tabs)/diary.tsx @@ -1,56 +1,21 @@ -import AlarmList from "@/components/AlarmList"; -import { Link } from "expo-router"; -import { - Platform, - StyleSheet, - Text, - TouchableOpacity, - View, -} from "react-native"; +import CreateOrUpdateHaulModal from "@/components/tripInfo/modal/CreateOrUpdateHaulModal"; +import { useState } from "react"; +import { Button, Platform, StyleSheet, View } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; -const alarmExample = { - alarms: [ - { - name: "Ngập nước có cảnh báo", - t: 1762226488, - level: 1, - id: "0:8:1", - }, - { - name: "Tầu cảnh báo sos", - t: 1762226596, - level: 3, - id: "50:15", - }, - { - name: "Khói có cảnh báo", - t: 1762226589, - level: 1, - id: "0:1:1", - }, - { - name: "Cửa có cảnh báo", - t: 1762226547, - level: 1, - id: "0:7:1", - }, - ], - level: 3, -}; - export default function Warning() { + const [isShowModal, setIsShowModal] = useState(false); return ( - Nhật Ký Chuyến Đi - - - - Mở Modal - - - + +