11// Settings Screen with Notification Controls
22import React , { useState , useEffect } from 'react' ;
33import { StyleSheet , View , Text , ScrollView , useColorScheme , TouchableOpacity , Switch , Alert , Modal , Linking } from 'react-native' ;
4+ import { useRouter } from 'expo-router' ;
45import { useApp } from '../../context/AppContext' ;
56import { Colors , SUPPORTED_CURRENCIES } from '../../constants/app' ;
7+ import FontAwesome from '@expo/vector-icons/FontAwesome' ;
68import {
79 requestNotificationPermission ,
810 scheduleDailyReminder ,
@@ -14,6 +16,7 @@ import {
1416export default function SettingsScreen ( ) {
1517 const colorScheme = useColorScheme ( ) ;
1618 const theme = Colors [ colorScheme === 'dark' ? 'dark' : 'light' ] ;
19+ const router = useRouter ( ) ;
1720 const { user, darkMode, setDarkMode, currency, setCurrency, handleLogout, resetData, transactions, budgets, goals } = useApp ( ) ;
1821
1922 const [ currencyModalVisible , setCurrencyModalVisible ] = useState ( false ) ;
@@ -137,6 +140,25 @@ export default function SettingsScreen() {
137140 </ View >
138141 </ View >
139142
143+ { /* Quick Access */ }
144+ < View style = { [ styles . section , { backgroundColor : theme . card } ] } >
145+ < Text style = { [ styles . sectionTitle , { color : theme . text } ] } > 🚀 Quick Access</ Text >
146+
147+ < TouchableOpacity
148+ style = { [ styles . quickAccessButton , { backgroundColor : theme . primary + '15' } ] }
149+ onPress = { ( ) => router . push ( '/(tabs)/insights' ) }
150+ >
151+ < View style = { [ styles . quickAccessIcon , { backgroundColor : theme . primary + '20' } ] } >
152+ < FontAwesome name = "magic" size = { 20 } color = { theme . primary } />
153+ </ View >
154+ < View style = { styles . quickAccessContent } >
155+ < Text style = { [ styles . quickAccessTitle , { color : theme . text } ] } > AI Insights</ Text >
156+ < Text style = { [ styles . quickAccessDesc , { color : theme . textSecondary } ] } > Get personalized financial advice</ Text >
157+ </ View >
158+ < FontAwesome name = "chevron-right" size = { 16 } color = { theme . textSecondary } />
159+ </ TouchableOpacity >
160+ </ View >
161+
140162 { /* Notifications */ }
141163 < View style = { [ styles . section , { backgroundColor : theme . card } ] } >
142164 < Text style = { [ styles . sectionTitle , { color : theme . text } ] } > 🔔 Notifications</ Text >
@@ -335,4 +357,9 @@ const styles = StyleSheet.create({
335357 checkmark : { fontSize : 18 , color : '#10b981' } ,
336358 closeButton : { borderWidth : 1 , borderRadius : 12 , padding : 14 , alignItems : 'center' , marginTop : 12 } ,
337359 closeButtonText : { fontWeight : '500' } ,
360+ quickAccessButton : { flexDirection : 'row' , alignItems : 'center' , padding : 16 , borderRadius : 12 , gap : 12 } ,
361+ quickAccessIcon : { width : 44 , height : 44 , borderRadius : 12 , justifyContent : 'center' , alignItems : 'center' } ,
362+ quickAccessContent : { flex : 1 } ,
363+ quickAccessTitle : { fontSize : 16 , fontWeight : '600' } ,
364+ quickAccessDesc : { fontSize : 12 , marginTop : 2 } ,
338365} ) ;
0 commit comments