create flow

This commit is contained in:
2025-10-01 15:39:35 +02:00
parent 2908afc259
commit c7ffaca548
4 changed files with 507 additions and 12 deletions
+8 -1
View File
@@ -19,6 +19,13 @@ const Goals = ({
const selected = selectedProp ?? internalSelected;
const setSelected = setSelectedProp ?? setInternalSelected;
const handleOtherObjectiveChange = (value) => {
setOtherObjective?.(value);
if (value?.trim()?.length && selected != null) {
setSelected(null);
}
};
// Selection handled by ListSelection
return (
@@ -41,7 +48,7 @@ const Goals = ({
label="Tu as un autre objectif?"
placeholder="Décrire lobjectif"
value={otherObjective}
setValue={setOtherObjective}
setValue={handleOtherObjectiveChange}
/>
</View>
);