Skip to content

Commit

Permalink
feat: ui improve
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisParedes1 committed Dec 5, 2023
1 parent 9947013 commit 52e181d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/screens/profile/components/edit-profile-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export const EditProfileButton = ({

if (user?.id === currentUser?.id) {
return (
<View className="flex justify-center">
<View className="flex justify-center px-2">
<Button
label="Edit"
className="mt-4 rounded-full bg-blue-400 px-4 py-2 text-center font-bold text-white shadow hover:bg-blue-500"
className="mt-4 rounded-full bg-blue-400 px-4 py-2 text-center font-bold text-white shadow hover:bg-blue-500"
onPress={() => {
navigation.navigate('EditProfileScreen', { user: currentUser });
}}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/profile/components/stadistics-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const StadisticsButton = ({

if (user?.id === currentUser?.id) {
return (
<View className="flex justify-center">
<View className="flex justify-center px-2">
<Button
label="Stats"
className="mt-4 rounded-full bg-violet-400 px-4 py-2 text-center font-bold text-white shadow"
Expand Down
2 changes: 1 addition & 1 deletion src/screens/profile/profile-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const ProfileScreenView = ({
/> */}

{moreOptions ? (
<View className=" flex flex-row justify-between border-gray-200 py-1">
<View className=" flex flex-row justify-center border-gray-200 py-1">
<EditProfileButton user={user} currentUser={currentUser} />
<StadisticsButton user={user} currentUser={currentUser} />
<VerifyButton user={user} currentUser={currentUser} />
Expand Down

0 comments on commit 52e181d

Please sign in to comment.