@@ -3,6 +3,7 @@ import { Alert, TouchableOpacity, View } from "react-native";
33import {
44 AddressIcon ,
55 BitcoinIcon ,
6+ ChevronRightIcon ,
67 FingerprintIcon ,
78 NotificationIcon ,
89 OnboardingIcon ,
@@ -19,122 +20,161 @@ import AlbyBanner from "~/components/AlbyBanner";
1920import Screen from "~/components/Screen" ;
2021import { Text } from "~/components/ui/text" ;
2122import { useSession } from "~/hooks/useSession" ;
22- import { DEFAULT_WALLET_NAME , IS_EXPO_GO } from "~/lib/constants" ;
23+ import { IS_EXPO_GO } from "~/lib/constants" ;
2324import { deregisterWalletNotifications } from "~/lib/notifications" ;
2425import { removeAllInfo } from "~/lib/notificationsNativeStorage" ;
2526import { useAppStore } from "~/lib/state/appStore" ;
2627import { useColorScheme } from "~/lib/useColorScheme" ;
2728
2829export function Settings ( ) {
2930 const wallets = useAppStore ( ( store ) => store . wallets ) ;
30- const wallet = useAppStore ( ( store ) => store . wallets [ store . selectedWalletId ] ) ;
31- const fiatCurrency = useAppStore ( ( store ) => store . fiatCurrency ) ;
3231 const [ developerCounter , setDeveloperCounter ] = React . useState ( 0 ) ;
3332 const [ developerMode , setDeveloperMode ] = React . useState ( __DEV__ ) ;
3433 const { colorScheme, toggleColorScheme } = useColorScheme ( ) ;
3534 const { signOut } = useSession ( ) ;
3635
3736 return (
38- < View className = "flex-1 p-6 " >
37+ < View className = "flex-1" >
3938 < Screen title = "Settings" />
40- < View className = "flex-1 flex flex-col gap-6 " >
39+ < View className = "flex-1 flex flex-col mt-4 " >
4140 < Link href = "/settings/wallets" asChild >
42- < TouchableOpacity className = "flex flex-row items-center gap-4" >
43- < WalletIcon className = "text-muted-foreground" />
41+ < TouchableOpacity className = "flex flex-row items-center gap-4 px-6 py-3" >
42+ < WalletIcon
43+ className = "text-muted-foreground"
44+ width = { 28 }
45+ height = { 28 }
46+ />
4447 < Text className = "font-medium2 text-xl text-foreground" >
4548 Wallets
4649 </ Text >
47- < Text
48- className = "text-muted-foreground text-xl flex-shrink"
49- numberOfLines = { 1 }
50- ellipsizeMode = "tail"
51- >
52- ({ wallet . name || DEFAULT_WALLET_NAME } )
53- </ Text >
50+ < ChevronRightIcon
51+ className = "ml-auto text-muted-foreground"
52+ width = { 20 }
53+ height = { 20 }
54+ />
5455 </ TouchableOpacity >
5556 </ Link >
5657
5758 < Link href = "/settings/fiat-currency" asChild >
58- < TouchableOpacity className = "flex flex-row gap-4 items-center" >
59- < BitcoinIcon className = "text-muted-foreground" />
59+ < TouchableOpacity className = "flex flex-row gap-4 items-center px-6 py-3" >
60+ < BitcoinIcon
61+ className = "text-muted-foreground"
62+ width = { 28 }
63+ height = { 28 }
64+ />
6065 < Text className = "text-foreground font-medium2 text-xl" >
6166 Fiat Currency
6267 </ Text >
63- { fiatCurrency && (
64- < Text className = "text-muted-foreground text-xl" >
65- ( { fiatCurrency } )
66- </ Text >
67- ) }
68+ < ChevronRightIcon
69+ className = "ml-auto text-muted-foreground"
70+ width = { 20 }
71+ height = { 20 }
72+ />
6873 </ TouchableOpacity >
6974 </ Link >
7075
7176 { ! IS_EXPO_GO && (
7277 < Link href = "/settings/notifications" asChild >
73- < TouchableOpacity className = "flex flex-row gap-4 items-center" >
74- < NotificationIcon className = "text-muted-foreground" />
78+ < TouchableOpacity className = "flex flex-row gap-4 items-center px-6 py-3" >
79+ < NotificationIcon
80+ className = "text-muted-foreground"
81+ width = { 28 }
82+ height = { 28 }
83+ />
7584 < Text className = "text-foreground font-medium2 text-xl" >
7685 Notifications
7786 </ Text >
87+ < ChevronRightIcon
88+ className = "ml-auto text-muted-foreground"
89+ width = { 20 }
90+ height = { 20 }
91+ />
7892 </ TouchableOpacity >
7993 </ Link >
8094 ) }
8195
8296 < Link href = "/settings/security" asChild >
83- < TouchableOpacity className = "flex flex-row gap-4 items-center" >
84- < FingerprintIcon className = "text-muted-foreground" />
97+ < TouchableOpacity className = "flex flex-row gap-4 items-center px-6 py-3" >
98+ < FingerprintIcon
99+ className = "text-muted-foreground"
100+ width = { 28 }
101+ height = { 28 }
102+ />
85103 < Text className = "text-foreground font-medium2 text-xl" >
86104 Security
87105 </ Text >
106+ < ChevronRightIcon
107+ className = "ml-auto text-muted-foreground"
108+ width = { 20 }
109+ height = { 20 }
110+ />
88111 </ TouchableOpacity >
89112 </ Link >
90113
91114 < TouchableOpacity
92- className = "flex flex-row gap-4 items-center"
115+ className = "flex flex-row gap-4 items-center px-6 py-3 "
93116 onPress = { toggleColorScheme }
94117 >
95- < ThemeIcon className = "text-muted-foreground" />
118+ < ThemeIcon className = "text-muted-foreground" width = { 28 } height = { 28 } />
96119 < Text className = "text-foreground font-medium2 text-xl" > Theme</ Text >
97120 < Text className = "text-muted-foreground text-xl" >
98121 ({ colorScheme . charAt ( 0 ) . toUpperCase ( ) + colorScheme . substring ( 1 ) } )
99122 </ Text >
100123 </ TouchableOpacity >
101124
102125 < Link href = "/settings/address-book" asChild >
103- < TouchableOpacity className = "flex flex-row gap-4 items-center" >
104- < AddressIcon className = "text-muted-foreground" />
126+ < TouchableOpacity className = "flex flex-row gap-4 items-center px-6 py-3" >
127+ < AddressIcon
128+ className = "text-muted-foreground"
129+ width = { 28 }
130+ height = { 28 }
131+ />
105132 < Text className = "text-foreground font-medium2 text-xl" >
106133 Address Book
107134 </ Text >
135+ < ChevronRightIcon
136+ className = "ml-auto text-muted-foreground"
137+ width = { 20 }
138+ height = { 20 }
139+ />
108140 </ TouchableOpacity >
109141 </ Link >
110142
111143 { developerMode && (
112144 < >
113- < View className = "mt-5 flex flex-col gap-6 " >
114- < Text className = "text-muted-foreground uppercase" >
145+ < View className = "mt-2 flex flex-col" >
146+ < Text className = "text-muted-foreground uppercase px-6 py-3 " >
115147 Developer mode
116148 </ Text >
117149 < TouchableOpacity
118- className = "flex flex-row gap-4 items-center"
150+ className = "flex flex-row gap-4 items-center px-6 py-3 "
119151 onPress = { ( ) => {
120152 signOut ( ) ;
121153 } }
122154 >
123- < SignOutIcon className = "text-muted-foreground" />
155+ < SignOutIcon
156+ className = "text-muted-foreground"
157+ width = { 28 }
158+ height = { 28 }
159+ />
124160 < Text className = "font-medium2 text-xl" > Sign out</ Text >
125161 </ TouchableOpacity >
126162 < TouchableOpacity
127- className = "flex flex-row gap-4 items-center"
163+ className = "flex flex-row gap-4 items-center px-6 py-3 "
128164 onPress = { ( ) => {
129165 router . dismissAll ( ) ;
130166 useAppStore . getState ( ) . setOnboarded ( false ) ;
131167 } }
132168 >
133- < OnboardingIcon className = "text-muted-foreground" />
169+ < OnboardingIcon
170+ className = "text-muted-foreground"
171+ width = { 28 }
172+ height = { 28 }
173+ />
134174 < Text className = "font-medium2 text-xl" > Open Onboarding</ Text >
135175 </ TouchableOpacity >
136176 < TouchableOpacity
137- className = "flex flex-row gap-4 items-center"
177+ className = "flex flex-row gap-4 items-center px-6 py-3 "
138178 onPress = { ( ) => {
139179 Alert . alert (
140180 "Reset" ,
@@ -161,7 +201,11 @@ export function Settings() {
161201 ) ;
162202 } }
163203 >
164- < ResetIcon className = "text-destructive" />
204+ < ResetIcon
205+ className = "text-destructive"
206+ width = { 28 }
207+ height = { 28 }
208+ />
165209 < Text className = "text-destructive font-medium2 text-xl" >
166210 Reset Wallet
167211 </ Text >
@@ -170,7 +214,7 @@ export function Settings() {
170214 </ >
171215 ) }
172216 </ View >
173- < View className = "flex flex-col gap-6" >
217+ < View className = "flex flex-col p-4 gap-6" >
174218 < AlbyBanner />
175219 < TouchableOpacity
176220 onPress = { ( ) => {
0 commit comments