From e3fc71a53f682307520eff716e68bc5458a21a26 Mon Sep 17 00:00:00 2001 From: Vinicius Souza Date: Thu, 7 Nov 2024 17:34:36 +0000 Subject: [PATCH] fix: default user photo on profile --- src/screens/Profile.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/screens/Profile.tsx b/src/screens/Profile.tsx index df7c409..f0bd82a 100644 --- a/src/screens/Profile.tsx +++ b/src/screens/Profile.tsx @@ -7,6 +7,8 @@ import * as yup from 'yup'; import { Controller, useForm } from 'react-hook-form'; import { yupResolver } from '@hookform/resolvers/yup'; +import defaultAvatar from '@assets/userPhotoDefault.png'; + import { api } from '@services/api'; import { AppError } from '@utils/AppError'; import { slug } from '@utils/Slug'; @@ -194,7 +196,9 @@ export function Profile() {