-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added default profile picture #680
Added default profile picture #680
Conversation
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 are some required changes, please check the comments
mobile/app/(tabs)/profile.tsx
Outdated
@@ -142,7 +142,7 @@ export function UserProfile({ userId }: { userId: string }) { | |||
<HStack space="lg" className="items-center justify-between py-4"> | |||
<Image | |||
source={{ | |||
uri: "https://placehold.co/640x640", | |||
uri: "frontend\src\assets\placeholder_profile.png", |
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.
need import
here
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.
You also need to add the placeholder image into mobile, and the code has to be a little different here. Something like {author.profilePicture ? {uri: author.profilePicture} : Placeholder}
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.
Looks good to me, thanks
📋 Proposed Changes
Related Issue
Closes #679
🧪 Included Tests