frontend: disable mood entry save button if there are no components
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago
a07da0191c388273f8f96998ecb294157c787517 Browse filesParents
74927a4Changed files
1
Additions
+1
Deletions
0
frontend/app/(tabs)/new/entry.tsx
1 1
import { useState, useEffect } from 'react';
2 2
import {
3 3
Link, router, useLocalSearchParams
4 4
} from 'expo-router';
5 5
176 176
/>
177 177
</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>
184 185
</View>
185 186
);
202 203
},
203 204
resumeCard: {
204 205
padding: Spacing.cardGap,
205 206
}
206 207
});