From 4cf3b5c8253b5c68d20248118fe6e65171a6d7cd Mon Sep 17 00:00:00 2001 From: Jaanu423 Date: Thu, 25 Sep 2025 17:00:54 +0530 Subject: [PATCH 1/2] created transaction list show and create a custom card --- src/screens/home/UserProfileStatus.tsx | 34 +++++++++++++++++-------- src/screens/home/user-home/UserHome.tsx | 32 ++++++++++++++++++----- 2 files changed, 49 insertions(+), 17 deletions(-) diff --git a/src/screens/home/UserProfileStatus.tsx b/src/screens/home/UserProfileStatus.tsx index 8cc2f58..9805c4d 100644 --- a/src/screens/home/UserProfileStatus.tsx +++ b/src/screens/home/UserProfileStatus.tsx @@ -10,8 +10,10 @@ import { } from "react-native"; import * as Keychain from "react-native-keychain"; import { useFocusEffect, useNavigation } from "@react-navigation/native"; -import { PUT_USER_STATUS } from "../../utils/ApiUrls"; +import { PUT_USER_STATUS } from "../../utils/ApiUrls"; import colors from "../../components/colors"; +import LinearGradient from "react-native-linear-gradient"; +import Ionicons from "@react-native-vector-icons/ionicons"; export type ApiResponse = { message: string; @@ -107,14 +109,23 @@ const UserProfileStatus: React.FC = () => { {/* Welcome Back 👋 */} - - Profile Status - Role: {statusData?.role} - Organizer: {statusData?.organizerStatus} - - Profile Completed: {statusData?.profileStatus ? "Yes ✅" : "No ❌"} - - + + + Profile Status + Role: {statusData?.role} + Organizer: {statusData?.organizerStatus} + + Profile Completed: {statusData?.profileStatus ? "Yes ✅" : "No ❌"} + + + + + {/* Custom Modal */} {showModal && ( @@ -182,12 +193,15 @@ const styles = StyleSheet.create({ elevation: 3, shadowOpacity: 0.1, shadowRadius: 6, - // marginBottom: 20, + marginBottom: 10, + justifyContent:'space-between', + flexDirection:'row' }, cardTitle: { fontSize: 18, fontWeight: "600", marginBottom: 10, + color: '#fff' }, button: { backgroundColor: "#007AFF", diff --git a/src/screens/home/user-home/UserHome.tsx b/src/screens/home/user-home/UserHome.tsx index 1c50d3a..57da78e 100644 --- a/src/screens/home/user-home/UserHome.tsx +++ b/src/screens/home/user-home/UserHome.tsx @@ -122,9 +122,27 @@ const UserHome = () => { }; return ( - <> + {/* Stats */} - + + {/*