-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Tidy up GiftedChat component #2379
Conversation
@@ -447,7 +376,7 @@ function GiftedChat(props: GiftedChatProps) { | |||
const getBasicMessagesContainerHeight = ( | |||
composerHeight = state.composerHeight, | |||
) => { | |||
return getMaxHeight()! - calculateInputToolbarHeight(composerHeight!) | |||
return maxHeightRef.current! - calculateInputToolbarHeight(composerHeight!) |
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.
potential for NaN
, as max height could be undefined.
|
@Johan-dutoit fixed the type errors, but don't think the Github actions is set up correctly. |
@amerikan my bad, was "working" on the PR. Fixed now and also added node 18. Will get the Circle CI removed soon. |
Purpose
Unused props are not removed in this PR. Not sure why they're there, but thought I just leave them alone for now.Removed unused props.