frontend: replace intervention card with "Praticas"
Pedro Lucas Porcellis porcellis@eletrotupi.com · 4 months ago
7e62c06ad25ffc0eea6e8e982cf5b80767f7f45a Browse filesParents
71fdb8fChanged files
1
Additions
+2
Deletions
-1
frontend/app/triggers/new.tsx
1 1
import {
2 2
View,
3 3
Text,
4 4
StyleSheet,
5 5
KeyboardAvoidingView,
67 67
const save = async () => {
68 68
const data = {
69 69
moment,
70 70
comment,
71 71
category,
72 +
...(linkMood && latestMood ? { moodId: latestMood.id } : null),
72 73
};
73 74
74 75
await createTrigger.mutateAsync(data);
75 76
router.replace("/(tabs)/actions");
76 77
};
157 158
name="psychology"
158 159
size={40}
159 160
color={Colors.light.disabled}
160 161
/>
161 162
}
162 -
label="Atividade"
163 +
label="Prática"
163 164
sublabel={"Nenhuma registrada"}
164 165
disabled={true}
165 166
value={false}
166 167
onToggle={() => {
167 168
console.log("When we get that");
227 228
alignItems: "center",
228 229
justifyContent: "center",
229 230
marginTop: 1,
230 231
},
231 232
});