@@ -8,7 +8,7 @@ import { MaterialIcons } from "@expo/vector-icons";
88import Toast from "react-native-toast-message" ;
99import { useApiKeys } from "@/app/funcs/apikeys" ;
1010
11- export default function apiKeysScreen ( ) {
11+ export default function ApiKeysScreen ( ) {
1212 const {
1313 apiKeys,
1414 newKeyExpire,
@@ -26,7 +26,7 @@ export default function apiKeysScreen() {
2626
2727 useEffect ( ( ) => {
2828 fetchApiKeys ( ) ;
29- } , [ ] ) ;
29+ } , [ fetchApiKeys ] ) ;
3030
3131 const handleCreateKeyWithDisplay = async ( ) => {
3232 const result = await handleCreateKey ( ) ;
@@ -69,8 +69,8 @@ export default function apiKeysScreen() {
6969 visible = { showKeyModal }
7070 onRequestClose = { closeKeyModal }
7171 >
72- < View className = "flex-1 justify-center items-center px-4" >
73- < View className = "bg-zinc-800 rounded-2xl p-6 w-full max-w-md" >
72+ < View className = "flex-1 justify-center items-center px-4 bg-black/50 " >
73+ < View className = "bg-zinc-800 rounded-2xl p-6 w-full max-w-md shadow-2xl " >
7474 < View className = "items-center mb-4" >
7575 < MaterialIcons name = "vpn-key" size = { 48 } color = "#10b981" />
7676 < Text className = "text-white text-xl font-bold mt-2" >
@@ -91,6 +91,7 @@ export default function apiKeysScreen() {
9191 < TouchableOpacity
9292 onPress = { ( ) => copyToClipboard ( newApiKey ! ) }
9393 className = "flex-1 bg-blue-600 py-3 rounded-lg flex-row items-center justify-center"
94+ activeOpacity = { 0.7 }
9495 >
9596 < MaterialIcons name = "content-copy" size = { 18 } color = "white" />
9697 < Text className = "text-white font-semibold ml-2" > Copy Key</ Text >
@@ -99,6 +100,7 @@ export default function apiKeysScreen() {
99100 < TouchableOpacity
100101 onPress = { closeKeyModal }
101102 className = "flex-1 bg-zinc-600 py-3 rounded-lg"
103+ activeOpacity = { 0.7 }
102104 >
103105 < Text className = "text-white font-semibold text-center" > Done</ Text >
104106 </ TouchableOpacity >
@@ -113,7 +115,7 @@ export default function apiKeysScreen() {
113115 ) ;
114116
115117 return (
116- < SafeAreaView className = "flex-1 bg-zinc-900 px-4 pt-4 " >
118+ < SafeAreaView className = "flex-1 bg-zinc-900" >
117119 { loading ? (
118120 < View className = "flex-1 justify-center items-center" >
119121 < ActivityIndicator size = "large" color = "#ffffff" />
@@ -129,7 +131,7 @@ export default function apiKeysScreen() {
129131 { /* Header */ }
130132 < View className = "mb-6 flex-row justify-between items-center" >
131133 < Text className = "text-white text-2xl font-bold" > API Keys</ Text >
132- < TouchableOpacity onPress = { fetchApiKeys } >
134+ < TouchableOpacity onPress = { fetchApiKeys } activeOpacity = { 0.7 } >
133135 < MaterialIcons name = "refresh" size = { 24 } color = "white" />
134136 </ TouchableOpacity >
135137 </ View >
@@ -170,7 +172,7 @@ export default function apiKeysScreen() {
170172 < TouchableOpacity
171173 onPress = { handleCreateKeyWithDisplay }
172174 className = "bg-green-600 p-3 rounded-lg flex-row items-center justify-center"
173- activeOpacity = { 0.8 }
175+ activeOpacity = { 0.7 }
174176 >
175177 < MaterialIcons name = "add" size = { 18 } color = "white" />
176178 < Text className = "text-white text-center font-semibold ml-1" >
@@ -265,6 +267,7 @@ export default function apiKeysScreen() {
265267 className = { `p-3 rounded-lg flex-row items-center justify-center ${
266268 expired ? "bg-zinc-600" : "bg-red-600"
267269 } `}
270+ activeOpacity = { 0.7 }
268271 >
269272 < MaterialIcons
270273 name = { expired ? "block" : "delete" }
0 commit comments