From 57fab57b9d56e61e7b3e0aa7954a37337a8b8188 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Wed, 10 Apr 2024 20:59:20 +0000 Subject: [PATCH] moving profile photo to env --- src/features/ProfileAvatar/ProfileAvatar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/ProfileAvatar/ProfileAvatar.tsx b/src/features/ProfileAvatar/ProfileAvatar.tsx index c37d32a..53443f7 100644 --- a/src/features/ProfileAvatar/ProfileAvatar.tsx +++ b/src/features/ProfileAvatar/ProfileAvatar.tsx @@ -25,8 +25,8 @@ const ProfileAvatar: React.FC = ({ ); const [isDeleting, setIsDeleting] = useState(false); const [message, setMessage] = useState(false); - const def = - "https://api.kgroad.org/media/user_photo/default.webp"; + const def = process.env.PROFILE_AVATAR_URL; + const [success, setSuccess] = useState(""); const [loader, setLoader] = useState(false);