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