From 9150d5084ed0ad8a2027da38adce4e7686b95a2c Mon Sep 17 00:00:00 2001 From: Dipan Dhali <121673023+dipandhali2021@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:56:33 +0000 Subject: [PATCH] [MM-55103] Replace usage of LocalizedIcon in 'rhs_card_header.tsx' with i/span tags (#25162) --- .../__snapshots__/rhs_card.test.tsx.snap | 6 ++--- .../rhs_card_header/rhs_card_header.tsx | 25 ++++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/webapp/channels/src/components/rhs_card/__snapshots__/rhs_card.test.tsx.snap b/webapp/channels/src/components/rhs_card/__snapshots__/rhs_card.test.tsx.snap index f50152e24f..1cb350cf18 100644 --- a/webapp/channels/src/components/rhs_card/__snapshots__/rhs_card.test.tsx.snap +++ b/webapp/channels/src/components/rhs_card/__snapshots__/rhs_card.test.tsx.snap @@ -4,7 +4,7 @@ exports[`comoponents/rhs_card/RhsCard should match on post when no plugin defini
- - - { +class RhsCardHeader extends React.PureComponent { handleBack = (e: React.MouseEvent): void => { e.preventDefault(); @@ -141,9 +140,9 @@ export default class RhsCardHeader extends React.PureComponent { onClick={this.handleBack} className='sidebar--right__back' > - @@ -171,13 +170,13 @@ export default class RhsCardHeader extends React.PureComponent { aria-label='Expand' onClick={this.props.actions.toggleRhsExpanded} > - - @@ -192,9 +191,9 @@ export default class RhsCardHeader extends React.PureComponent { aria-label='Close' onClick={this.props.actions.closeRightHandSide} > - @@ -203,3 +202,5 @@ export default class RhsCardHeader extends React.PureComponent { ); } } + +export default injectIntl(RhsCardHeader);