mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-54793] Convert ./components/widgets/separator/notification-separator.tsx to Function Component (#24887)
* Converted Notification Seperator to function component * Fixed lint error --------- Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
c97731e4a6
commit
4ec573c3fb
@ -5,9 +5,9 @@ import React from 'react';
|
||||
import './separator.scss';
|
||||
import './notification-separator.scss';
|
||||
|
||||
export default class NotificationSeparator extends React.PureComponent<React.PropsWithChildren<any>> {
|
||||
public render() {
|
||||
const {children} = this.props;
|
||||
type Props = React.PropsWithChildren<any>;
|
||||
|
||||
const NotificationSeparator = ({children}: Props) => {
|
||||
return (
|
||||
<div
|
||||
className='Separator NotificationSeparator'
|
||||
@ -21,6 +21,7 @@ export default class NotificationSeparator extends React.PureComponent<React.Pro
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default React.memo(NotificationSeparator);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user