frontend: disable mood entry save button if there are no components

Pedro Lucas Porcellis porcellis@eletrotupi.com 27 days ago a07da0191c388273f8f96998ecb294157c787517
Parents: 74927a4
1 file(s) changed
  • frontend/app/(tabs)/new/entry.tsx +1 -0
frontend/app/(tabs)/new/entry.tsx
@@ -178,6 +178,7 @@ </Section>
178 178
179 179 <Button title="Salvar Registro"
180 180 onPress={saveMoodEntry}
181 + disabled={!components.length}
181 182 />
182 183 </View>
183 184 </ScrollView>