Skip to content
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

Show deleted user #1022

Merged
merged 14 commits into from
Feb 14, 2019
Merged

Show deleted user #1022

merged 14 commits into from
Feb 14, 2019

Conversation

OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Feb 7, 2019

A new component UserDisplayName is added for showing user display name and also handling the cases where a user is banned or deleted. When the user name must be a string instead of a component (e.g. in Avatar and in ListingPage) you can use a new function userDisplayNameAsString. Together these will replace the old userDisplayName function which is now deprecated. There is quite a lot of file changes caused by updating test files.

This PR contains also small bug fixes:

  • prop type user now accepts also banned or deleted user
  • image size in mobile view when a listing doesn't have an image

src/util/data.js Show resolved Hide resolved
src/util/data.js Show resolved Hide resolved
src/util/data.js Outdated Show resolved Hide resolved
src/util/types.js Outdated Show resolved Hide resolved
Copy link
Contributor

@Gnito Gnito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple of comments, but otherwise looks good 👍

@OtterleyW OtterleyW merged commit 385b35e into master Feb 14, 2019
@OtterleyW OtterleyW deleted the show-deleted-user branch February 14, 2019 08:34
@Gnito Gnito mentioned this pull request Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants