From bf08eefe57d288196f893a6d1988a9f1522b62cd Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Tue, 14 May 2024 22:44:32 +0200 Subject: [PATCH] Fix: beer get page responsibility --- frontend/app/(app)/(tabs)/beer/index.js | 32 ++++++++++++------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/frontend/app/(app)/(tabs)/beer/index.js b/frontend/app/(app)/(tabs)/beer/index.js index 4175ad3..42092df 100644 --- a/frontend/app/(app)/(tabs)/beer/index.js +++ b/frontend/app/(app)/(tabs)/beer/index.js @@ -42,8 +42,7 @@ export default function Tab() { }} /> - - {/* String(item._id)} @@ -57,20 +56,19 @@ export default function Tab() { )} /> */} - String(item._id)} - renderItem={({ item }) => ( - - Name: {item.name} - Brand: {item.brand} - Degree: {item.degree} - Packaging: {item.packaging} - - )} - /> - + String(item._id)} + renderItem={({ item }) => ( + + Name: {item.name} + Brand: {item.brand} + Degree: {item.degree} + Packaging: {item.packaging} + + )} + /> ); } @@ -80,7 +78,7 @@ export const styles = StyleSheet.create({ flex: 1, justifyContent: "center", alignItems: "center", - width: "100%", + marginTop: "2%", }, beerList: { width: "100%",