From c0235ebe9fa83a770d3ef27c281edaf81c59f6a4 Mon Sep 17 00:00:00 2001 From: nsemets Date: Thu, 23 Oct 2025 18:10:52 +0300 Subject: [PATCH] fix(profile): added icon for website --- .../profile-information/profile-information.component.html | 7 +++---- src/app/features/profile/helpers/user-socials.helper.ts | 2 +- src/app/shared/constants/social-links.const.ts | 2 +- src/assets/icons/socials/globe.svg | 1 + 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/assets/icons/socials/globe.svg diff --git a/src/app/features/profile/components/profile-information/profile-information.component.html b/src/app/features/profile/components/profile-information/profile-information.component.html index d9b6f8aa6..e21756c3f 100644 --- a/src/app/features/profile/components/profile-information/profile-information.component.html +++ b/src/app/features/profile/components/profile-information/profile-information.component.html @@ -21,8 +21,8 @@

{{ currentUser()?.fullName }}

-
-
+
+
@if (currentUser()?.social?.orcid) {
orcid @@ -39,7 +39,7 @@

{{ currentUser()?.fullName }}

@if (isEmploymentAndEducationVisible()) { -
+
@if (currentUser()?.education?.length) {
@@ -51,7 +51,6 @@

@if (currentUser()?.employment?.length) {
- cos-shield

{{ currentUser()?.employment?.[0]?.institution }}

diff --git a/src/app/features/profile/helpers/user-socials.helper.ts b/src/app/features/profile/helpers/user-socials.helper.ts index e4fd979f1..65b739f42 100644 --- a/src/app/features/profile/helpers/user-socials.helper.ts +++ b/src/app/features/profile/helpers/user-socials.helper.ts @@ -26,7 +26,7 @@ export function mapUserSocials( url = social.address + value; } - if (url && social.key !== 'profileWebsites') { + if (url) { acc.push({ url, icon: `assets/icons/socials/${social.icon}`, diff --git a/src/app/shared/constants/social-links.const.ts b/src/app/shared/constants/social-links.const.ts index a64cec645..56e3352f6 100644 --- a/src/app/shared/constants/social-links.const.ts +++ b/src/app/shared/constants/social-links.const.ts @@ -79,7 +79,7 @@ export const SOCIAL_LINKS: SocialLinksModel[] = [ address: '', placeholder: 'https://yourwebsite.com', key: 'profileWebsites', - icon: '', + icon: 'globe.svg', }, { id: 11, diff --git a/src/assets/icons/socials/globe.svg b/src/assets/icons/socials/globe.svg new file mode 100644 index 000000000..938451a18 --- /dev/null +++ b/src/assets/icons/socials/globe.svg @@ -0,0 +1 @@ + \ No newline at end of file