From 9f51a1982ecebc1ebbaea8ff5fef4de7f760a4e9 Mon Sep 17 00:00:00 2001 From: jrau1801 Date: Thu, 13 Jun 2024 19:18:19 +0200 Subject: [PATCH 01/29] feat: edit profile page setup with routing --- src/app/(auth)/(tabs)/profile/_layout.tsx | 2 ++ src/app/(auth)/(tabs)/profile/editProfile.tsx | 13 +++++++++ src/components/profile/ProfileHeader.tsx | 2 +- src/screens/EditProfilePage.tsx | 29 +++++++++++++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/app/(auth)/(tabs)/profile/editProfile.tsx create mode 100644 src/screens/EditProfilePage.tsx diff --git a/src/app/(auth)/(tabs)/profile/_layout.tsx b/src/app/(auth)/(tabs)/profile/_layout.tsx index 656c3eb..28c8fab 100644 --- a/src/app/(auth)/(tabs)/profile/_layout.tsx +++ b/src/app/(auth)/(tabs)/profile/_layout.tsx @@ -5,7 +5,9 @@ const ProfileRootLayout = () => { return ( + + ); }; diff --git a/src/app/(auth)/(tabs)/profile/editProfile.tsx b/src/app/(auth)/(tabs)/profile/editProfile.tsx new file mode 100644 index 0000000..2f78f15 --- /dev/null +++ b/src/app/(auth)/(tabs)/profile/editProfile.tsx @@ -0,0 +1,13 @@ +import { View, Text } from 'react-native' +import React from 'react' +import EditProfilePage from '@screens/EditProfilePage' + +const EditProfile = () => { + return ( + + + + ) +} + +export default EditProfile \ No newline at end of file diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx index c25c43d..0ef58cf 100644 --- a/src/components/profile/ProfileHeader.tsx +++ b/src/components/profile/ProfileHeader.tsx @@ -54,7 +54,7 @@ const ProfileHeader: React.FC = ({ user, isSelf }) => { {isSelf ? ( <>