continue generating flow, add backend connection on main tabs

This commit is contained in:
Thomas Demirdjian
2025-08-28 17:18:28 +02:00
parent 0ca7544005
commit bb7b35626f
110 changed files with 1701 additions and 3408 deletions
+23 -1
View File
@@ -45,6 +45,18 @@ export default ({ navigation }) => {
value: "",
type: "string",
},
{
title: "Notifications",
key: "notifications",
value: !!currentUserData?.notifications,
type: "boolean",
},
{
title: "Langue",
key: "language",
value: currentUserData?.language || "",
type: "string",
},
];
const destructiveSettingsList = [
@@ -125,7 +137,11 @@ export default ({ navigation }) => {
}
};
if (!value) {
// Validate input except for booleans where false is allowed
const isInvalidString =
typeof value === "string" && value.trim().length === 0;
const isNullish = value === null || value === undefined;
if (isNullish || isInvalidString) {
throw new Error("Vérifiez les informations saisies");
}
@@ -269,6 +285,12 @@ export default ({ navigation }) => {
);
})}
<ItemRowList
title={"Gérer mon abonnement"}
action={() => {}}
containerStyle={{}}
/>
{destructiveSettingsList.map((setting, index) => (
<ItemRowList key={index} {...setting} containerStyle={{}} />
))}