From 5523cfa3475d04e0e42d9b504395a22bec0d295c Mon Sep 17 00:00:00 2001 From: anantakumarghosh Date: Wed, 26 Jun 2024 19:41:22 +0530 Subject: [PATCH] style(core): :lipstick: style alignment polishing style alignment polishing of basic info and contact info Ref: #52 --- app/components/basicInfo/BasicInfoCard.js | 60 ++++++++++++++++--- app/components/contactInfo/ContactInfoCard.js | 37 ++++++------ 2 files changed, 70 insertions(+), 27 deletions(-) diff --git a/app/components/basicInfo/BasicInfoCard.js b/app/components/basicInfo/BasicInfoCard.js index a180eb8..33bf3ab 100644 --- a/app/components/basicInfo/BasicInfoCard.js +++ b/app/components/basicInfo/BasicInfoCard.js @@ -2,8 +2,9 @@ import { CoreAvatar, CoreH6, CoreTypographyBody1, - CoreTypographyCaption, + CoreIconButton, CoreBox, + CoreIcon, CoreGrid, CoreClasses, getFullName, @@ -19,7 +20,27 @@ export default function BasicInfoCard(props) { const { firstName, middleName, lastName, gender, dob, bio, photo } = props; - + const CustomIconTooltipText = (props) =>{ + return ( + + + {props?.icon !== undefined ? + + {props?.icon} + : null + } + + {props?.children} + + ); + }; const getGender = (gender, iconFlag = false) => { let genderTmp = "unknown"; @@ -75,14 +96,37 @@ export default function BasicInfoCard(props) { - - - - {" | "} - - + + + + + + + + + + diff --git a/app/components/contactInfo/ContactInfoCard.js b/app/components/contactInfo/ContactInfoCard.js index d05c32b..de0e17d 100644 --- a/app/components/contactInfo/ContactInfoCard.js +++ b/app/components/contactInfo/ContactInfoCard.js @@ -5,7 +5,6 @@ import { CoreIconButton, CoreBox, CoreGrid, - CoreCardHeader, CoreClasses, coreUseNavigate, CorePhoneLink, @@ -21,26 +20,26 @@ export default function ContactInfoCard(props) { const { phone, email, profileLink, website } = props; return ( + <> - Contact Info - } - action={ - { - navigate("/settings#account"); - }} - > - edit_note - - } - /> + + Contact Info + + { + navigate("/settings#account"); + }} + styleClasses={[CoreClasses.PADDING.PR0]} + > + edit_note + + + - +