aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileBody.tsx
diff options
context:
space:
mode:
authorAshm Walia <ashmwalia@outlook.com>2021-01-16 09:44:41 -0800
committerAshm Walia <ashmwalia@outlook.com>2021-01-16 09:44:41 -0800
commitd85eaeb878cbbeedda860ee5809b81100c910af2 (patch)
tree6ef10bb63bde79ce166d9bc916feb5483dbf635b /src/components/profile/ProfileBody.tsx
parent72aabf60d815cdecf59aaef86df57be6a557efd0 (diff)
Done
Diffstat (limited to 'src/components/profile/ProfileBody.tsx')
-rw-r--r--src/components/profile/ProfileBody.tsx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx
index 4076e473..64aec09c 100644
--- a/src/components/profile/ProfileBody.tsx
+++ b/src/components/profile/ProfileBody.tsx
@@ -57,15 +57,9 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({
const dispatch = useDispatch();
const handleAcceptRequest = async () => {
- try {
- await dispatch(
- acceptFriendRequest({id, username, first_name, last_name}),
- );
- await dispatch(updateUserXFriends(id, state));
- dispatch(updateUserXProfileAllScreens(id, state));
- } catch (err) {
- console.log(err);
- }
+ await dispatch(acceptFriendRequest({id, username, first_name, last_name}));
+ await dispatch(updateUserXFriends(id, state));
+ dispatch(updateUserXProfileAllScreens(id, state));
};
const handleDeclineFriendRequest = async () => {
@@ -144,6 +138,12 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({
};
const styles = StyleSheet.create({
+ toggleButtonContainer: {
+ flexDirection: 'row',
+ flex: 1,
+ paddingTop: '3.5%',
+ paddingBottom: '2%',
+ },
acceptRejectContainer: {
flexDirection: 'row',
},