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

[Profile-01] Profile page header display #367

Merged
merged 14 commits into from
Jan 20, 2021
Merged

[Profile-01] Profile page header display #367

merged 14 commits into from
Jan 20, 2021

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Dec 19, 2020

Implements user profile page's header.
Figma: https://www.figma.com/file/zpD45j8nqDB2XfA6m2QskO/Cofacts-website?node-id=912%3A384

  • URL: /user?id=xxx or /user/slug (But no one has slug yet)
  • Links to user page: on reply's header
  • Edit function of profile page header is not implemented yet

Screenshots

Clicking into user page

user-page-enter

Self

(Edit button exists but its behavior is not implemented yet)

image

Mobile

image

@MrOrz MrOrz self-assigned this Dec 19, 2020
@MrOrz MrOrz changed the title Profile page header display [Profile-01] Profile page header display Jan 3, 2021
variables: { id, slug },
});

const isSelf = currentUser && data?.GetUser?.id === currentUser.id;
Copy link
Member

@LucienLee LucienLee Jan 6, 2021

Choose a reason for hiding this comment

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

Suggested change
const isSelf = currentUser && data?.GetUser?.id === currentUser.id;
const isSelf = data?.GetUser?.id === currentUser?.id;

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm if both currentUser and data is nullish (which is probably during the first render), isSelf will become true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants