Make onHeightChange a required prop of <ConversationHero>

This commit is contained in:
Evan Hahn 2021-09-16 16:44:00 -05:00 committed by GitHub
parent 89fc7d2c0c
commit 11855d1585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View file

@ -19,7 +19,7 @@ export type Props = {
i18n: LocalizerType;
isMe: boolean;
membersCount?: number;
onHeightChange?: () => unknown;
onHeightChange: () => unknown;
phoneNumber?: string;
sharedGroupNames?: Array<string>;
unblurAvatar: () => void;
@ -134,7 +134,7 @@ export const ConversationHero = ({
}
window.log.info('ConversationHero: calling onHeightChange');
onHeightChange?.();
onHeightChange();
}, [
about,
conversationType,