This commit is contained in:
Philip Cesar Garay
2025-08-15 21:02:34 +08:00
parent 41636b5dbc
commit a8ebe8bcc3
39 changed files with 1436 additions and 391 deletions
+82
View File
@@ -0,0 +1,82 @@
import { View, Text } from "react-native";
import React from "react";
import Page from "../../layouts/Page";
import { background } from "../../assets";
import { gutters, Palette } from "../../styles";
import { responsiveHeight } from "react-native-responsive-dimensions";
import BlurItemButton from "../../components/BlurItemButton";
import BorderGradientButton from "../../components/BorderGradientButton";
import { SheetManager } from "react-native-actions-sheet";
import { navigate } from "../../navigation/NavigationService";
import { Routes } from "../../navigation";
const SETTINGS = [
{
title: "Adresse mail",
action: () => {
navigate(Routes.ChangeEmailAddress);
},
},
{
title: "Modifier mon mot de passe",
action: () => {
navigate(Routes.ChangePassword);
},
},
{
title: "Notifications",
action: () => {
navigate(Routes.Notifications);
},
},
{
title: "Langue",
action: () => {
navigate(Routes.Language);
},
},
{
title: "Gérer mon abonnement",
action: () => {},
},
];
const Settings = () => {
return (
<Page
headerType="NAVIGATION"
title="Paramètres"
backgroundImg={background.profileBG}
contentContainerStyle={{
paddingBottom: gutters * 2,
}}
containerStyle={{
backgroundColor: "#0000004D",
}}
>
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
<View style={{ flex: 1, gap: 10 }}>
{SETTINGS.map((item, index) => (
<BlurItemButton
key={index}
title={item.title}
onPress={item.action}
/>
))}
</View>
<View style={{ width: "80%", gap: 5, alignSelf: "center" }}>
<BorderGradientButton title="Déconnexion" />
<BorderGradientButton
title="Supprimer mon profil"
titleStyle={{
color: Palette.red,
}}
onPress={() => SheetManager.show("DeleteAccount")}
/>
</View>
</View>
</Page>
);
};
export default Settings;