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
@@ -18,6 +18,13 @@ const SongStyle = ({
const selected = selectedProp ?? internalSelected;
const setSelected = setSelectedProp ?? setInternalSelected;
const handleOtherStyleChange = (value) => {
setOtherStyle?.(value);
if (value?.trim()?.length && selected != null) {
setSelected(null);
}
};
// Selection handled by ListSelection
return (
@@ -42,7 +49,7 @@ const SongStyle = ({
label="Tu as un autre style de chanson ?"
placeholder="Décrire lobjectif"
value={otherStyle}
setValue={setOtherStyle}
setValue={handleOtherStyleChange}
/>
</View>
);