-
Notifications
You must be signed in to change notification settings - Fork 144
fix: Critical issues for mobile compatibility #546
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
fix: Critical issues for mobile compatibility #546
Conversation
Apply the components to the EmojiReactions comp
| import ImageRenderer from '../ImageRenderer'; | ||
| import Icon, { IconColors, IconTypes } from '../Icon'; | ||
| import Label, { LabelColors, LabelTypography } from '../Label'; | ||
| import { useChannelContext } from '../../modules/Channel/context/ChannelProvider'; |
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.
MobileEmojisBottomSheet wont be used inn thread?
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.
Yes, so I changed it to get the channel through props!
btw I will make the hybrid hook function to get context from multiple context provider!
| const ReactorList = useMemo(() => { | ||
| const memberList = message.reactions?.find(reaction => reaction.key === selectedEmoji) | ||
| ?.userIds.map((userId) => members.find((member) => member.userId === userId) ?? null) | ||
| .filter((member) => member !== null) as Array<Member>; |
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.
as Array<Member> is this type-casting really necessary?
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.
It says the memberList type is Array<Member | null> even I filtered null
| <EmojiReactions | ||
| userId={userId} | ||
| message={message as UserMessage | FileMessage} | ||
| channel={channel} |
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.
Cant we use hook?
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.
MessageContent is used under the Channel and Thread modules, do you have any good ideas to support both?
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.
yeah, I can share in chat ~
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.
Let me apply it in the different PR
according to it's value type
AhyoungRyu
left a comment
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.
👍 👍👍
Description Of Changes
avatarSizeto the UserListItem compbreakpointto string and booleanUIKIT-3882