-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added Avatars and profile pictures in userAutoComplete #8892
feat: Added Avatars and profile pictures in userAutoComplete #8892
Conversation
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sorry, I didn't understand..how is it broken.. |
Better. The online dot could come to the bottom right of the avatar. Also prefix |
Yup! |
Updated! |
👋 Hi, @noufalrahim, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
optionImage={(option: UserBareMinimum | UserModel) => | ||
(option as UserModel).read_profile_picture_url || "" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if read_profile_picture_url
is not present in UserBareMinimum
but backend provides it, then add then move the read_profile_picture_url
to UserBareMinimum
instead.
optionImage={(option: UserBareMinimum | UserModel) => | |
(option as UserModel).read_profile_picture_url || "" | |
} | |
optionImage={(option: UserBareMinimum) => option.read_profile_picture_url} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done..
<div className="w-full"> | ||
<div className="flex w-full justify-between"> | ||
<span> | ||
{"@"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noufalrahim like said previously, this is a reusable component. Modifications made here will affect all other places. @
prefix is only supposed to be present for UserAutocompleteFormField
not any other usages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So where am I supposed to add "@"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The username
should have the prefix @
, not the name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a doubt regarding conflict.. How to resolve it.. |
merge latest develop into this branch and clear conflicts from the editor and push the merge commit. |
Opened another PR |
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
] Add specs that demonstrate bug / test a new feature.