From e3bd14e9ecf3ea706d41d54028360cd243dc39ed Mon Sep 17 00:00:00 2001 From: Matt McCoy Date: Sat, 24 Feb 2024 13:10:40 -0500 Subject: [PATCH] feat: use arrow over back text --- client/assets/arrow-left.svg | 4 ++++ client/components/profile/Header.tsx | 3 ++- client/components/profile/ProfileTopHeader.tsx | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 client/assets/arrow-left.svg diff --git a/client/assets/arrow-left.svg b/client/assets/arrow-left.svg new file mode 100644 index 0000000..99dedf4 --- /dev/null +++ b/client/assets/arrow-left.svg @@ -0,0 +1,4 @@ + + + + diff --git a/client/components/profile/Header.tsx b/client/components/profile/Header.tsx index 6177c0e..b386ec4 100644 --- a/client/components/profile/Header.tsx +++ b/client/components/profile/Header.tsx @@ -4,6 +4,7 @@ import { Text, View } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { styled } from 'nativewind'; +import ArrowLeft from '../../assets/arrow-left.svg'; import Ellipse from '../../assets/profile/ellipse.svg'; import { AppStackNavigation } from '../../navigation/AppNavigation'; import { GroupRole } from '../../types/group'; @@ -29,7 +30,7 @@ export function Header({ user, role }: HeaderProps) { } rightButtonText="Edit" /> diff --git a/client/components/profile/ProfileTopHeader.tsx b/client/components/profile/ProfileTopHeader.tsx index 27045d5..ae2acd7 100644 --- a/client/components/profile/ProfileTopHeader.tsx +++ b/client/components/profile/ProfileTopHeader.tsx @@ -6,7 +6,7 @@ import { User } from '../../types/user'; interface ProfileTopHeaderProps { user: User; onTouchEndLeft?: () => void; - leftButtonText?: string; + leftButtonText?: JSX.Element | string; onTouchEndRight?: () => void; rightButtonText?: string; } @@ -22,7 +22,7 @@ export function ProfileTopHeader({ - {leftButtonText} + {leftButtonText}