Remove use of default props (#4118)
* refactor: replace defaultProps with function parameters in Modal, Statusbar, ChatContainer, and CrossfadeImage components * New commit for Default properties of React components after syncing fork and rebasing * fix: fix linter warning --------- Co-authored-by: swarup <swarupnarkhede999@gmail.com>
This commit is contained in:
@@ -79,8 +79,8 @@ export const ChatContainer: FC<ChatContainerProps> = ({
|
||||
usernameToHighlight,
|
||||
chatUserId,
|
||||
isModerator,
|
||||
showInput,
|
||||
height,
|
||||
showInput = true,
|
||||
height = 'auto',
|
||||
chatAvailable: chatEnabled,
|
||||
desktop,
|
||||
focusInput = true,
|
||||
@@ -377,8 +377,3 @@ export const ChatContainer: FC<ChatContainerProps> = ({
|
||||
</ErrorBoundary>
|
||||
);
|
||||
};
|
||||
|
||||
ChatContainer.defaultProps = {
|
||||
showInput: true,
|
||||
height: 'auto',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user