diff --git a/webapp/channels/src/plugins/rhs_plugin/rhs_plugin.tsx b/webapp/channels/src/plugins/rhs_plugin/rhs_plugin.tsx index 80408e8ec4..0703543525 100644 --- a/webapp/channels/src/plugins/rhs_plugin/rhs_plugin.tsx +++ b/webapp/channels/src/plugins/rhs_plugin/rhs_plugin.tsx @@ -13,26 +13,24 @@ export type Props = { title: React.ReactNode; } -export default class RhsPlugin extends React.PureComponent { - render() { - return ( -
- - {this.props.title} - - { - this.props.showPluggable && - <> - - - } -
- ); - } -} +const RhsPlugin = ({showPluggable, pluggableId, title}: Props) => { + return ( +
+ + {title} + + { + showPluggable && + + } +
+ ); +}; + +export default React.memo(RhsPlugin);