diff --git a/webapp/channels/src/components/widgets/separator/notification-separator.tsx b/webapp/channels/src/components/widgets/separator/notification-separator.tsx index 987e45a26e..2ceaaac41e 100644 --- a/webapp/channels/src/components/widgets/separator/notification-separator.tsx +++ b/webapp/channels/src/components/widgets/separator/notification-separator.tsx @@ -5,22 +5,23 @@ import React from 'react'; import './separator.scss'; import './notification-separator.scss'; -export default class NotificationSeparator extends React.PureComponent> { - public render() { - const {children} = this.props; - return ( -
-
- {children && ( -
- {children} -
- )} -
- ); - } -} +type Props = React.PropsWithChildren; + +const NotificationSeparator = ({children}: Props) => { + return ( +
+
+ {children && ( +
+ {children} +
+ )} +
+ ); +}; + +export default React.memo(NotificationSeparator);