Skip to content

Commit a184309

Browse files
committed
feat: Simplify empty expenses message display in GroupDetailsScreen
1 parent 42723b8 commit a184309

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/screens/GroupDetailsScreen.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,7 @@ const GroupDetailsScreen = ({ route, navigation }) => {
199199
keyExtractor={(item) => item._id}
200200
ListHeaderComponent={renderHeader}
201201
ListEmptyComponent={
202-
<View>
203-
{renderHeader()}
204-
<Text>No expenses recorded yet.</Text>
205-
</View>
202+
<Text style={styles.emptyText}>No expenses recorded yet.</Text>
206203
}
207204
contentContainerStyle={{ paddingBottom: 80 }} // To avoid FAB overlap
208205
/>
@@ -308,6 +305,11 @@ const styles = StyleSheet.create({
308305
fontWeight: "600",
309306
color: "#333",
310307
},
308+
emptyText: {
309+
fontSize: 14,
310+
color: "#666",
311+
paddingVertical: 8,
312+
},
311313
});
312314

313315
export default GroupDetailsScreen;

0 commit comments

Comments
 (0)