update login, modal detail in tripInfo
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import { Platform, ScrollView, StyleSheet, Text, View } from "react-native";
|
||||
import { Link } from "expo-router";
|
||||
import {
|
||||
Platform,
|
||||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
} from "react-native";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
|
||||
export default function Warning() {
|
||||
@@ -7,6 +15,12 @@ export default function Warning() {
|
||||
<ScrollView contentContainerStyle={styles.scrollContent}>
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.titleText}>Nhật Ký Chuyến Đi</Text>
|
||||
|
||||
<Link href="/modal" asChild>
|
||||
<TouchableOpacity style={styles.button}>
|
||||
<Text style={styles.buttonText}>Mở Modal</Text>
|
||||
</TouchableOpacity>
|
||||
</Link>
|
||||
</View>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
@@ -32,4 +46,16 @@ const styles = StyleSheet.create({
|
||||
default: "System",
|
||||
}),
|
||||
},
|
||||
button: {
|
||||
backgroundColor: "#007AFF",
|
||||
paddingVertical: 14,
|
||||
paddingHorizontal: 24,
|
||||
borderRadius: 8,
|
||||
marginTop: 20,
|
||||
},
|
||||
buttonText: {
|
||||
color: "#fff",
|
||||
fontSize: 16,
|
||||
fontWeight: "600",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -108,14 +108,6 @@ export default function LoginScreen() {
|
||||
<ThemedText type="title" style={styles.title}>
|
||||
Hệ thống giám sát tàu cá
|
||||
</ThemedText>
|
||||
{/* Owner Logo */}
|
||||
<View style={styles.ownerContainer}>
|
||||
<Image
|
||||
source={require("@/assets/images/owner.png")}
|
||||
style={styles.ownerLogo}
|
||||
resizeMode="contain"
|
||||
/>
|
||||
</View>
|
||||
<ThemedText style={styles.subtitle}>
|
||||
Đăng nhập để tiếp tục
|
||||
</ThemedText>
|
||||
@@ -263,13 +255,6 @@ const styles = StyleSheet.create({
|
||||
color: "#007AFF",
|
||||
fontWeight: "600",
|
||||
},
|
||||
ownerContainer: {
|
||||
alignItems: "center",
|
||||
},
|
||||
ownerLogo: {
|
||||
width: 150,
|
||||
height: 50,
|
||||
},
|
||||
copyrightContainer: {
|
||||
marginTop: 20,
|
||||
alignItems: "center",
|
||||
|
||||
Reference in New Issue
Block a user