|
|
@ -1,11 +1,5 @@ |
|
|
|
import React, { useContext } from "react"; |
|
|
|
import { |
|
|
|
Text, |
|
|
|
Image, |
|
|
|
View, |
|
|
|
StyleSheet, |
|
|
|
ScrollView, |
|
|
|
} from "react-native"; |
|
|
|
import { Text, Image, View, StyleSheet, ScrollView } from "react-native"; |
|
|
|
import Screen from "../components/Screen"; |
|
|
|
import { AuthContext } from "../auth/context"; |
|
|
|
import authStorage from "../auth/storage"; |
|
|
@ -53,7 +47,16 @@ function ProfileItensList({ icon, IconProvider, title, onPress }) { |
|
|
|
}} |
|
|
|
> |
|
|
|
<IconProvider name={icon} size={18} color={colors.dark} /> |
|
|
|
<Text style={{ fontSize: 16, marginLeft: 16 }}>{title}</Text> |
|
|
|
<Text |
|
|
|
style={{ |
|
|
|
fontSize: 16, |
|
|
|
marginLeft: 16, |
|
|
|
textTransform: "uppercase", |
|
|
|
fontWeight: "500", |
|
|
|
}} |
|
|
|
> |
|
|
|
{title} |
|
|
|
</Text> |
|
|
|
<View |
|
|
|
style={{ |
|
|
|
alignItems: "flex-end", |
|
|
@ -126,7 +129,7 @@ function AccountScreen(props) { |
|
|
|
{ |
|
|
|
icon: "trash-can", |
|
|
|
IconProvider: MaterialCommunityIcons, |
|
|
|
title: "Desativar conta", |
|
|
|
title: "DESATIVAR CONTA", |
|
|
|
onPress: () => { |
|
|
|
console.log("7"); |
|
|
|
}, |
|
|
@ -145,12 +148,14 @@ function AccountScreen(props) { |
|
|
|
|
|
|
|
<View style={{ marginTop: 24 }}> |
|
|
|
{profileItems.map(({ icon, IconProvider, title, onPress }) => ( |
|
|
|
<ProfileItensList |
|
|
|
icon={icon} |
|
|
|
IconProvider={IconProvider} |
|
|
|
title={title} |
|
|
|
onPress={onPress} |
|
|
|
/> |
|
|
|
<View key={title}> |
|
|
|
<ProfileItensList |
|
|
|
icon={icon} |
|
|
|
IconProvider={IconProvider} |
|
|
|
title={title} |
|
|
|
onPress={onPress} |
|
|
|
/> |
|
|
|
</View> |
|
|
|
))} |
|
|
|
</View> |
|
|
|
</View> |
|
|
|