diff --git a/app/(tabs)/setting.tsx b/app/(tabs)/setting.tsx index dcfb7d2..0888a81 100644 --- a/app/(tabs)/setting.tsx +++ b/app/(tabs)/setting.tsx @@ -11,7 +11,7 @@ import { checkNotificationPermission, getLocationPermission, getPermissions, req import { ThemedText } from '@/components/ThemedText'; import { useAuth } from '@/contexts/auth-context'; import { fetchApi } from '@/lib/server-api-util'; -import { Address, User, UserInfoDetails } from '@/types/user'; +import { Address, User } from '@/types/user'; import * as Location from 'expo-location'; import { useFocusEffect, useRouter } from 'expo-router'; import * as SecureStore from 'expo-secure-store'; @@ -20,7 +20,7 @@ import { useTranslation } from 'react-i18next'; import { Linking, Platform, Pressable, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { useSafeAreaInsets } from "react-native-safe-area-context"; -const Setting = (props: { userInfo: UserInfoDetails }) => { +const Setting = () => { const [userInfo, setUserInfo] = useState(null); const getUserInfo = async () => { @@ -210,7 +210,7 @@ const Setting = (props: { userInfo: UserInfoDetails }) => { }, []) return ( - + @@ -405,14 +405,11 @@ const Setting = (props: { userInfo: UserInfoDetails }) => { const styles = StyleSheet.create({ centeredView: { - flex: 1, - justifyContent: 'flex-end', - backgroundColor: 'rgba(0,0,0,0.5)', + flex: 1 }, modalView: { width: '100%', height: '100%', - backgroundColor: 'white', paddingHorizontal: 16, }, modalHeader: { @@ -440,7 +437,8 @@ const styles = StyleSheet.create({ }, premium: { backgroundColor: "#FAF9F6", - padding: 16, + paddingHorizontal: 16, + paddingVertical: 20, borderRadius: 24, flexDirection: 'row', justifyContent: 'space-between', @@ -452,11 +450,11 @@ const styles = StyleSheet.create({ gap: 4, backgroundColor: '#FAF9F6', borderRadius: 24, - paddingVertical: 8 + padding: 8 }, item: { paddingHorizontal: 16, - paddingVertical: 8, + paddingVertical: 12, flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', diff --git a/components/owner/category.tsx b/components/owner/category.tsx index e1e7fb5..ee5c2ee 100644 --- a/components/owner/category.tsx +++ b/components/owner/category.tsx @@ -120,6 +120,7 @@ const styles = StyleSheet.create({ justifyContent: 'center', position: 'relative', width: '100%', + paddingVertical: 4 }, title: { color: 'white', diff --git a/components/owner/qualification/lcenses.tsx b/components/owner/qualification/lcenses.tsx index 714a230..eb485c2 100644 --- a/components/owner/qualification/lcenses.tsx +++ b/components/owner/qualification/lcenses.tsx @@ -43,10 +43,9 @@ const styles = StyleSheet.create({ }, modalView: { width: '100%', - height: '40%', + height: '50%', backgroundColor: 'white', - borderTopLeftRadius: 20, - borderTopRightRadius: 20, + borderRadius: 26, }, modalHeader: { flexDirection: 'row', diff --git a/components/owner/qualification/privacy.tsx b/components/owner/qualification/privacy.tsx index 1d95722..9c78728 100644 --- a/components/owner/qualification/privacy.tsx +++ b/components/owner/qualification/privacy.tsx @@ -77,6 +77,7 @@ const PrivacyModal = ({ modalVisible, setModalVisible, type }: PrivacyModalProps ); } + console.log(article); return (